diff --git a/PowerEditor/src/MISC/Common/verifySignedfile.cpp b/PowerEditor/src/MISC/Common/verifySignedfile.cpp index 2a659d7b9..9af9a1af9 100644 --- a/PowerEditor/src/MISC/Common/verifySignedfile.cpp +++ b/PowerEditor/src/MISC/Common/verifySignedfile.cpp @@ -76,7 +76,7 @@ bool SecurityGuard::checkSha256(const std::wstring& filePath, NppModule module2c wchar_t sha2hashStr[65] = { '\0' }; for (size_t i = 0; i < 32; i++) - wsprintf(sha2hashStr + i * 2, TEXT("%02x"), sha2hash[i]); + wsprintf(sha2hashStr + i * 2, L"%02x", sha2hash[i]); std::vector* moduleSha256 = nullptr; @@ -149,7 +149,7 @@ bool SecurityGuard::verifySignedLibrary(const std::wstring& filepath) DWORD netstatus; QOCINFO oci; oci.dwSize = sizeof(oci); - CONST TCHAR* msftTEXTest_site = TEXT("http://www.msftncsi.com/ncsi.txt"); + CONST TCHAR* msftTEXTest_site = L"http://www.msftncsi.com/ncsi.txt"; bool online = false; online = (0 != IsNetworkAlive(&netstatus)); online = online && (0 == GetLastError()); diff --git a/PowerEditor/src/MISC/Exception/MiniDumper.cpp b/PowerEditor/src/MISC/Exception/MiniDumper.cpp index 8ebb39f56..3da6f6bc8 100644 --- a/PowerEditor/src/MISC/Exception/MiniDumper.cpp +++ b/PowerEditor/src/MISC/Exception/MiniDumper.cpp @@ -46,7 +46,7 @@ bool MiniDumper::writeDump(EXCEPTION_POINTERS * pExceptionInfo) wcscat_s(szDumpPath, L"\\NppDump.dmp"); // ask the user if they want to save a dump file - int msgret = ::MessageBox(NULL, TEXT("Do you want to save a dump file?\r\nDoing so can aid in developing Notepad++."), msgTitle, MB_YESNO); + int msgret = ::MessageBox(NULL, L"Do you want to save a dump file?\r\nDoing so can aid in developing Notepad++.", msgTitle, MB_YESNO); if (msgret == IDYES) { // create the file diff --git a/PowerEditor/src/MISC/RegExt/regExtDlg.cpp b/PowerEditor/src/MISC/RegExt/regExtDlg.cpp index f31ff5c8d..311871ace 100644 --- a/PowerEditor/src/MISC/RegExt/regExtDlg.cpp +++ b/PowerEditor/src/MISC/RegExt/regExtDlg.cpp @@ -34,7 +34,7 @@ const TCHAR defExtArray[nbSupportedLang][nbExtMax][extNameMax] = {L"Notepad", L".txt", L".log" }, - {TEXT("ms ini/inf"), + {L"ms ini/inf", L".ini", L".inf" }, {L"c, c++, objc", @@ -42,7 +42,7 @@ const TCHAR defExtArray[nbSupportedLang][nbExtMax][extNameMax] = L".m", L".mm", L".vcxproj", L".vcproj", L".props", L".vsprops", L".manifest" }, - {TEXT("java, c#, pascal"), + {L"java, c#, pascal", L".java", L".cs", L".pas", L".pp", L".inc" }, {L"web script", diff --git a/PowerEditor/src/MISC/RegExt/regExtDlg.rc b/PowerEditor/src/MISC/RegExt/regExtDlg.rc index fa44d4763..aaa7fd16f 100644 --- a/PowerEditor/src/MISC/RegExt/regExtDlg.rc +++ b/PowerEditor/src/MISC/RegExt/regExtDlg.rc @@ -21,7 +21,7 @@ IDD_REGEXT_BOX DIALOGEX 115, 10, 460, 205 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | DS_CONTROL -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 +FONT 8, L"MS Shell Dlg", 0, 0, 0x1 BEGIN LTEXT "Please exit Notepad++ and relaunch Notepad++ in Administrator mode to use this feature.",IDC_ADMINMUSTBEONMSG_STATIC,20,0,300,16 LTEXT "Supported extensions:",IDC_SUPPORTEDEXTS_STATIC,70,18,80,8 diff --git a/PowerEditor/src/MISC/md5/md5Dlgs.cpp b/PowerEditor/src/MISC/md5/md5Dlgs.cpp index 17d7b25c5..55b0e4781 100644 --- a/PowerEditor/src/MISC/md5/md5Dlgs.cpp +++ b/PowerEditor/src/MISC/md5/md5Dlgs.cpp @@ -118,7 +118,7 @@ intptr_t CALLBACK HashFromFilesDlg::run_dlgProc(UINT message, WPARAM wParam, LPA case IDC_HASH_FILEBROWSER_BUTTON: { CustomFileDialog fDlg(_hSelf); - fDlg.setExtFilter(L"All types", TEXT(".*")); + fDlg.setExtFilter(L"All types", L".*"); const auto& fns = fDlg.doOpenMultiFilesDlg(); if (!fns.empty()) @@ -272,28 +272,28 @@ void HashFromFilesDlg::doDialog(bool isRTL) case hash_md5: { title = L"Generate MD5 digest from files"; - buttonText = TEXT("Choose files to &generate MD5..."); + buttonText = L"Choose files to &generate MD5..."; } break; case hash_sha1: { title = L"Generate SHA-1 digest from files"; - buttonText = TEXT("Choose files to &generate SHA-1..."); + buttonText = L"Choose files to &generate SHA-1..."; } break; case hash_sha256: { title = L"Generate SHA-256 digest from files"; - buttonText = TEXT("Choose files to &generate SHA-256..."); + buttonText = L"Choose files to &generate SHA-256..."; } break; case hash_sha512: { title = L"Generate SHA-1 digest from files"; - buttonText = TEXT("Choose files to &generate SHA-512..."); + buttonText = L"Choose files to &generate SHA-512..."; } break; diff --git a/PowerEditor/src/Notepad_plus.rc b/PowerEditor/src/Notepad_plus.rc index 4dfa08c22..1acb037b8 100644 --- a/PowerEditor/src/Notepad_plus.rc +++ b/PowerEditor/src/Notepad_plus.rc @@ -1310,7 +1310,7 @@ END IDD_ABOUTBOX DIALOGEX 0, 0, 270, 240 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_BORDER | WS_SYSMENU -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 +FONT 8, L"MS Shell Dlg", 0, 0, 0x1 BEGIN EDITTEXT IDC_BUILD_DATETIME,150,2,150,10, ES_READONLY | NOT WS_BORDER CONTROL "", IDI_NPPABOUT_LOGO,"Static",SS_OWNERDRAW,10,5,128,128 @@ -1343,7 +1343,7 @@ IDD_DEBUGINFOBOX DIALOGEX 0, 0, 246, 195 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Debug Info" -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 +FONT 8, L"MS Shell Dlg", 0, 0, 0x1 BEGIN GROUPBOX "",IDC_STATIC,8,3,230,151,BS_CENTER EDITTEXT IDC_DEBUGINFO_EDIT,18,16,210,128,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL @@ -1355,7 +1355,7 @@ IDD_DOSAVEORNOTBOX DIALOGEX 0, 0, 312, 80 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Save" -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 +FONT 8, L"MS Shell Dlg", 0, 0, 0x1 BEGIN LTEXT "",IDC_DOSAVEORNOTTEXT,7,10,290,40,SS_EDITCONTROL DEFPUSHBUTTON "&Yes",IDYES,10,60,50,14 @@ -1369,7 +1369,7 @@ IDD_DOSAVEALLBOX DIALOGEX 0, 0, 260, 95 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Save" -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 +FONT 8, L"MS Shell Dlg", 0, 0, 0x1 BEGIN LTEXT "",IDC_DOSAVEALLTEXT,7,10,250,70,SS_EDITCONTROL DEFPUSHBUTTON "&Yes",IDYES,47,75,50,14 @@ -1381,7 +1381,7 @@ IDD_GOLINE DIALOGEX 0, 0, 258, 75 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Go To..." -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x0 +FONT 8, L"MS Shell Dlg", 0, 0, 0x0 BEGIN CONTROL "&Line",IDC_RADIO_GOTOLINE,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,8,5,80,10 CONTROL "&Offset",IDC_RADIO_GOTOOFFSET,"Button",BS_AUTORADIOBUTTON,98,5,80,10 diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.rc b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.rc index 980ef3678..2ef18d337 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.rc +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.rc @@ -98,7 +98,7 @@ IDB_INCREMENTAL_BG BITMAP "../icons/incrementalBg.bmp" IDD_INCREMENT_FIND DIALOGEX 0, 0, 680, 20 STYLE DS_SYSMODAL | DS_CONTROL | DS_FIXEDSYS | WS_CHILD | WS_CLIPCHILDREN -FONT 8, TEXT("MS Shell Dlg") +FONT 8, L"MS Shell Dlg" BEGIN PUSHBUTTON "✕",IDCANCEL,2,3,16,14 RTEXT "Find:",IDC_INCSTATIC,18,6,46,12 @@ -114,7 +114,7 @@ IDD_FINDRESULT DIALOGEX 0, 0, 223, 67 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_TOOLWINDOW | WS_EX_WINDOWEDGE CAPTION "Search results" -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x0 +FONT 8, L"MS Shell Dlg", 0, 0, 0x0 BEGIN DEFPUSHBUTTON ">",IDC_INCFINDNXTOK,243,0,16,14,NOT WS_VISIBLE // dummy control to prevent issue with focus (search result selection) END diff --git a/PowerEditor/src/ScintillaComponent/FunctionCallTip.h b/PowerEditor/src/ScintillaComponent/FunctionCallTip.h index 206fe51af..8347afc62 100644 --- a/PowerEditor/src/ScintillaComponent/FunctionCallTip.h +++ b/PowerEditor/src/ScintillaComponent/FunctionCallTip.h @@ -53,7 +53,7 @@ private: TCHAR _stop = ')'; TCHAR _param = ','; TCHAR _terminal = ';'; - generic_string _additionalWordChar = TEXT(""); + generic_string _additionalWordChar = L""; bool _ignoreCase = true; bool _selfActivated = false; diff --git a/PowerEditor/src/ScintillaComponent/GoToLineDlg.h b/PowerEditor/src/ScintillaComponent/GoToLineDlg.h index 6fb3665fa..f09b9d0f1 100644 --- a/PowerEditor/src/ScintillaComponent/GoToLineDlg.h +++ b/PowerEditor/src/ScintillaComponent/GoToLineDlg.h @@ -48,7 +48,7 @@ public : else { // clean Line Edit - ::SetDlgItemText(_hSelf, ID_GOLINE_EDIT, TEXT("")); + ::SetDlgItemText(_hSelf, ID_GOLINE_EDIT, L""); } }; diff --git a/PowerEditor/src/ScintillaComponent/columnEditor.rc b/PowerEditor/src/ScintillaComponent/columnEditor.rc index 25c569dd1..1901f2e6e 100644 --- a/PowerEditor/src/ScintillaComponent/columnEditor.rc +++ b/PowerEditor/src/ScintillaComponent/columnEditor.rc @@ -23,7 +23,7 @@ IDD_COLUMNEDIT DIALOGEX 0, 0, 220, 214 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Column / Multi-Selection Editor" -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x0 +FONT 8, L"MS Shell Dlg", 0, 0, 0x0 BEGIN CONTROL "&Text to Insert",IDC_COL_TEXT_RADIO,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP | WS_GROUP,13,6,124,10 CONTROL "&Number to Insert",IDC_COL_NUM_RADIO,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP | WS_GROUP,13,68,204,10 diff --git a/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp b/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp index 3f8bfd2be..b61d9d9b2 100644 --- a/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp +++ b/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp @@ -571,7 +571,7 @@ XmlMatchedTagsHighlighter::FindResult XmlMatchedTagsHighlighter::findText(const search.chrg.cpMax = static_cast(end); LangType lang = (_pEditView->getCurrentBuffer())->getLangType(); - if (lang == L_XML || (lang == L_HTML && wcsicmp(PathFindExtension((_pEditView->getCurrentBuffer())->getFileName()), TEXT(".xhtml")) == 0)) + if (lang == L_XML || (lang == L_HTML && wcsicmp(PathFindExtension((_pEditView->getCurrentBuffer())->getFileName()), L".xhtml") == 0)) flags = flags | SCFIND_MATCHCASE; intptr_t result = _pEditView->execute(SCI_FINDTEXTFULL, flags, reinterpret_cast(&search)); diff --git a/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.cpp b/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.cpp index 45a22d746..eb9327597 100644 --- a/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.cpp +++ b/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.cpp @@ -774,7 +774,7 @@ bool TiXmlDocumentA::LoadUnicodeFilePath( const TCHAR* filename ) // See STL_STRING_BUG above. // Fixed with the StringToBuffer class. - FILE* file = _wfopen(filename, TEXT("r")); + FILE* file = _wfopen(filename, L"r"); if ( file ) { @@ -832,7 +832,7 @@ bool TiXmlDocumentA::SaveFile( const char * filename ) const bool TiXmlDocumentA::SaveUnicodeFilePath( const TCHAR* filename ) const { // The old c stuff lives on... - FILE* fp = _wfopen( filename, TEXT("wc") ); + FILE* fp = _wfopen( filename, L"wc" ); if ( fp ) { Print( fp, 0 ); diff --git a/PowerEditor/src/TinyXml/tinystr.h b/PowerEditor/src/TinyXml/tinystr.h index 18c10794a..293dbedd2 100644 --- a/PowerEditor/src/TinyXml/tinystr.h +++ b/PowerEditor/src/TinyXml/tinystr.h @@ -69,7 +69,7 @@ class TiXmlString { if (allocated) return cstring; - return TEXT(""); + return L""; } // Return the length of a TiXmlString @@ -115,7 +115,7 @@ class TiXmlString } // Checks if a TiXmlString contains only whitespace (same rules as isspace) - // Not actually used in tinyxml. Conflicts with a C macro, TEXT("isblank"), + // Not actually used in tinyxml. Conflicts with a C macro, L"isblank", // which is a problem. Commenting out. -lee // bool isblank () const; diff --git a/PowerEditor/src/TinyXml/tinyxml.h b/PowerEditor/src/TinyXml/tinyxml.h index fc0a749b2..5300a1983 100644 --- a/PowerEditor/src/TinyXml/tinyxml.h +++ b/PowerEditor/src/TinyXml/tinyxml.h @@ -366,7 +366,7 @@ public: void SetValue( const std::wstring& _value ) { StringToBuffer buf( _value ); - SetValue( buf.buffer ? buf.buffer : TEXT("") ); + SetValue( buf.buffer ? buf.buffer : L"" ); } #endif @@ -614,13 +614,13 @@ public: void SetName( const std::wstring& _name ) { StringToBuffer buf( _name ); - SetName ( buf.buffer ? buf.buffer : TEXT("error") ); + SetName ( buf.buffer ? buf.buffer : L"error" ); } /// STL string form. void SetValue( const std::wstring& _value ) { StringToBuffer buf( _value ); - SetValue( buf.buffer ? buf.buffer : TEXT("error") ); + SetValue( buf.buffer ? buf.buffer : L"error" ); } #endif @@ -1092,7 +1092,7 @@ public: */ void ClearError() { error = false; errorId = 0; - errorDesc = TEXT(""); + errorDesc = L""; errorLocation.row = errorLocation.col = 0; //errorLocation.last = 0; } @@ -1130,9 +1130,9 @@ private: Take an example: @verbatim - - - + + + @endverbatim diff --git a/PowerEditor/src/TinyXml/tinyxmlerror.cpp b/PowerEditor/src/TinyXml/tinyxmlerror.cpp index 0d47f9ee6..3d5a13ac1 100644 --- a/PowerEditor/src/TinyXml/tinyxmlerror.cpp +++ b/PowerEditor/src/TinyXml/tinyxmlerror.cpp @@ -34,18 +34,18 @@ distribution. const TCHAR* TiXmlBase::errorString[ TIXML_ERROR_STRING_COUNT ] = { - TEXT("No error"), - TEXT("Error"), - TEXT("Failed to open file"), - TEXT("Memory allocation failed."), - TEXT("Error parsing Element."), - TEXT("Failed to read Element name"), - TEXT("Error reading Element value."), - TEXT("Error reading Attributes."), - TEXT("Error: empty tag."), - TEXT("Error reading end tag."), - TEXT("Error parsing Unknown."), - TEXT("Error parsing Comment."), - TEXT("Error parsing Declaration."), - TEXT("Error document empty.") + L"No error", + L"Error", + L"Failed to open file", + L"Memory allocation failed.", + L"Error parsing Element.", + L"Failed to read Element name", + L"Error reading Element value.", + L"Error reading Attributes.", + L"Error: empty tag.", + L"Error reading end tag.", + L"Error parsing Unknown.", + L"Error parsing Comment.", + L"Error parsing Declaration.", + L"Error document empty." }; diff --git a/PowerEditor/src/TinyXml/tinyxmlparser.cpp b/PowerEditor/src/TinyXml/tinyxmlparser.cpp index 6d0736504..51efa674e 100644 --- a/PowerEditor/src/TinyXml/tinyxmlparser.cpp +++ b/PowerEditor/src/TinyXml/tinyxmlparser.cpp @@ -34,11 +34,11 @@ distribution. // or order will break putstring. TiXmlBase::Entity TiXmlBase::entity[ NUM_ENTITY ] = { - { TEXT("&"), 5, '&' }, - { TEXT("<"), 4, '<' }, - { TEXT(">"), 4, '>' }, - { TEXT("""), 6, '\"' }, - { TEXT("'"), 6, '\'' } + { L"&", 5, '&' }, + { L"<", 4, '<' }, + { L">", 4, '>' }, + { L""", 6, '\"' }, + { L"'", 6, '\'' } }; @@ -197,7 +197,7 @@ const TCHAR* TiXmlBase::SkipWhiteSpace( const TCHAR* p ) const TCHAR* TiXmlBase::ReadName( const TCHAR* p, TIXML_STRING * name ) { - *name = TEXT(""); + *name = L""; assert( p ); // Names start with letters or underscores. @@ -228,7 +228,7 @@ const TCHAR* TiXmlBase::GetEntity( const TCHAR* p, TCHAR* value ) int i; // Handle the &#x entities. - if (wcsncmp( TEXT("&#x"), p, 3 ) == 0) + if (wcsncmp( L"&#x", p, 3 ) == 0) { const TCHAR* end = wcschr(p+3, L';'); if (end && end - p <= 3 + 4) @@ -311,7 +311,7 @@ const TCHAR* TiXmlBase::ReadText( const TCHAR* p, const TCHAR* endTag, bool caseInsensitive ) { - *text = TEXT(""); + *text = L""; if ( !trimWhiteSpace // certain tags always keep whitespace || !condenseWhiteSpace ) // if true, whitespace is always kept { @@ -524,8 +524,8 @@ TiXmlNode* TiXmlNode::Identify( const TCHAR* p ) // - Everthing else is unknown to tinyxml. // - const TCHAR* xmlHeader = { TEXT("good() && in->peek() != '<' ) { // Yep, text. - TiXmlText text( TEXT("") ); + TiXmlText text( L"" ); text.StreamIn( in, tag ); // What follows text is a closing tag or another node. @@ -712,9 +712,9 @@ const TCHAR* TiXmlElement::Parse( const TCHAR* p, TiXmlParsingData* data ) return 0; } - TIXML_STRING endTag (TEXT(""); + endTag += L">"; // Check for and read attributes. Also look for an empty // tag or an end tag. @@ -808,7 +808,7 @@ const TCHAR* TiXmlElement::ReadValue( const TCHAR* p, TiXmlParsingData* data ) if ( *p != '<' ) { // Take what we have, make a text element. - TiXmlText* textNode = new TiXmlText( TEXT("") ); + TiXmlText* textNode = new TiXmlText( L"" ); if ( !textNode ) { @@ -827,7 +827,7 @@ const TCHAR* TiXmlElement::ReadValue( const TCHAR* p, TiXmlParsingData* data ) { // We hit a '<' // Have we hit a new element or an end tag? - if ( StringEqual( p, TEXT("' ) { @@ -931,7 +931,7 @@ void TiXmlComment::StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag ) const TCHAR* TiXmlComment::Parse( const TCHAR* p, TiXmlParsingData* data ) { TiXmlDocument* document = GetDocument(); - value = TEXT(""); + value = L""; p = SkipWhiteSpace( p ); @@ -941,8 +941,8 @@ const TCHAR* TiXmlComment::Parse( const TCHAR* p, TiXmlParsingData* data ) data->Stamp( p ); location = data->Cursor(); } - const TCHAR* startTag = TEXT(""); + const TCHAR* startTag = L""; if ( !StringEqual( p, startTag, false ) ) { @@ -994,13 +994,13 @@ const TCHAR* TiXmlAttribute::Parse( const TCHAR* p, TiXmlParsingData* data ) if ( *p == '\'' ) { ++p; - end = TEXT("\'"); + end = L"\'"; p = ReadText( p, &value, false, end, false ); } else if ( *p == '"' ) { ++p; - end = TEXT("\""); + end = L"\""; p = ReadText( p, &value, false, end, false ); } else @@ -1008,7 +1008,7 @@ const TCHAR* TiXmlAttribute::Parse( const TCHAR* p, TiXmlParsingData* data ) // All attribute values should be in single or double quotes. // But this is such a common error that the parser will try // its best, even without them. - value = TEXT(""); + value = L""; while ( p && *p // existence && !_istspace( *p ) && *p != '\n' && *p != '\r' // whitespace && *p != '/' && *p != '>' ) // tag end @@ -1037,7 +1037,7 @@ void TiXmlText::StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag ) const TCHAR* TiXmlText::Parse( const TCHAR* p, TiXmlParsingData* data ) { - value = TEXT(""); + value = L""; // TiXmlParsingData data( p, prevData ); if ( data ) { @@ -1046,7 +1046,7 @@ const TCHAR* TiXmlText::Parse( const TCHAR* p, TiXmlParsingData* data ) } bool ignoreWhite = true; - const TCHAR* end = TEXT("<"); + const TCHAR* end = L"<"; p = ReadText( p, &value, ignoreWhite, end, false ); if ( p ) return p-1; // don't truncate the '<' @@ -1076,7 +1076,7 @@ const TCHAR* TiXmlDeclaration::Parse( const TCHAR* p, TiXmlParsingData* data ) // Find the beginning, find the end, and look for // the stuff in-between. TiXmlDocument* document = GetDocument(); - if ( !p || !*p || !StringEqual( p, TEXT("SetError( TIXML_ERROR_PARSING_DECLARATION, 0, 0 ); return 0; @@ -1089,9 +1089,9 @@ const TCHAR* TiXmlDeclaration::Parse( const TCHAR* p, TiXmlParsingData* data ) } p += 5; - version = TEXT(""); - encoding = TEXT(""); - standalone = TEXT(""); + version = L""; + encoding = L""; + standalone = L""; while ( p && *p ) { @@ -1102,19 +1102,19 @@ const TCHAR* TiXmlDeclaration::Parse( const TCHAR* p, TiXmlParsingData* data ) } p = SkipWhiteSpace( p ); - if ( StringEqual( p, TEXT("version"), true ) ) + if ( StringEqual( p, L"version", true ) ) { TiXmlAttribute attrib; p = attrib.Parse( p, data ); version = attrib.Value(); } - else if ( StringEqual( p, TEXT("encoding"), true ) ) + else if ( StringEqual( p, L"encoding", true ) ) { TiXmlAttribute attrib; p = attrib.Parse( p, data ); encoding = attrib.Value(); } - else if ( StringEqual( p, TEXT("standalone"), true ) ) + else if ( StringEqual( p, L"standalone", true ) ) { TiXmlAttribute attrib; p = attrib.Parse( p, data ); diff --git a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.h b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.h index 21bdf7e4f..448d69f94 100644 --- a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.h +++ b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.h @@ -22,7 +22,7 @@ #include "StaticDialog.h" #define LICENCE_TXT \ -TEXT("This program is free software; you can redistribute it and/or \ +L"This program is free software; you can redistribute it and/or \ modify it under the terms of the GNU General Public License \ as published by the Free Software Foundation; either \ version 3 of the License, or at your option any later version.\r\n\ @@ -33,7 +33,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \ GNU General Public License for more details. \r\n\ \r\n\ You should have received a copy of the GNU General Public License \ -along with this program. If not, see .") +along with this program. If not, see ." class AboutDlg : public StaticDialog diff --git a/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp b/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp index 5b4053bcb..d600cb293 100644 --- a/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp +++ b/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp @@ -104,13 +104,13 @@ void URLCtrl::action() // Open a browser if (!_URL.empty()) { - ::ShellExecute(NULL, TEXT("open"), _URL.c_str(), NULL, NULL, SW_SHOWNORMAL); + ::ShellExecute(NULL, L"open", _URL.c_str(), NULL, NULL, SW_SHOWNORMAL); } else { TCHAR szWinText[MAX_PATH] = { '\0' }; ::GetWindowText(_hSelf, szWinText, MAX_PATH); - ::ShellExecute(NULL, TEXT("open"), szWinText, NULL, NULL, SW_SHOWNORMAL); + ::ShellExecute(NULL, L"open", szWinText, NULL, NULL, SW_SHOWNORMAL); } } } diff --git a/PowerEditor/src/WinControls/AnsiCharPanel/ListView.cpp b/PowerEditor/src/WinControls/AnsiCharPanel/ListView.cpp index 6eec8ced0..b0322903a 100644 --- a/PowerEditor/src/WinControls/AnsiCharPanel/ListView.cpp +++ b/PowerEditor/src/WinControls/AnsiCharPanel/ListView.cpp @@ -39,7 +39,7 @@ void ListView::init(HINSTANCE hInst, HWND parent) | LVS_SHAREIMAGELISTS | LVS_SHOWSELALWAYS; _hSelf = ::CreateWindow(WC_LISTVIEW, - TEXT(""), + L"", WS_CHILD | WS_BORDER | listViewStyles, 0, 0, diff --git a/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.h b/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.h index deb5092b8..445b8d42a 100644 --- a/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.h +++ b/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.h @@ -25,7 +25,7 @@ #include "ListView.h" #include "asciiListView.h" -#define AI_PROJECTPANELTITLE TEXT("ASCII Codes Insertion Panel") +#define AI_PROJECTPANELTITLE L"ASCII Codes Insertion Panel" class ScintillaEditView; diff --git a/PowerEditor/src/WinControls/AnsiCharPanel/asciiListView.cpp b/PowerEditor/src/WinControls/AnsiCharPanel/asciiListView.cpp index 58155396a..4201d5d28 100644 --- a/PowerEditor/src/WinControls/AnsiCharPanel/asciiListView.cpp +++ b/PowerEditor/src/WinControls/AnsiCharPanel/asciiListView.cpp @@ -524,16 +524,16 @@ void AsciiListView::setValues(int codepage) { if ((i >= 32 && i <= 126 && i != 45) || (i >= 160 && i <= 255)) { - swprintf(htmlNumber, bufSize, TEXT("&#%d;"), i); - swprintf(htmlHexNumber, bufSize, TEXT("&#x%x;"), i); + swprintf(htmlNumber, bufSize, L"&#%d;", i); + swprintf(htmlHexNumber, bufSize, L"&#x%x;", i); } else { int n = getHtmlNumber(static_cast(i)); if (n > -1) { - swprintf(htmlNumber, bufSize, TEXT("&#%d;"), n); - swprintf(htmlHexNumber, bufSizeHex, TEXT("&#x%x;"), n); + swprintf(htmlNumber, bufSize, L"&#%d;", n); + swprintf(htmlHexNumber, bufSizeHex, L"&#x%x;", n); } else { diff --git a/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp b/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp index 4a189c8e9..e8be04fec 100644 --- a/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp +++ b/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp @@ -182,7 +182,7 @@ void ClipboardHistoryPanel::drawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) if (i >= _clipboardDataInfos.size()) return; - //printStr(TEXT("OK")); + //printStr(L"OK"); COLORREF fgColor = _lbFgColor == -1?black:_lbFgColor; // fg black by default COLORREF bgColor = _lbBgColor == -1?white:_lbBgColor; // bg white by default @@ -293,7 +293,7 @@ intptr_t CALLBACK ClipboardHistoryPanel::run_dlgProc(UINT message, WPARAM wParam } catch (...) { - MessageBox(_hSelf, TEXT("Cannot process this clipboard data in the history:\nThe data is too large to be treated."), TEXT("Clipboard problem"), MB_OK | MB_APPLMODAL); + MessageBox(_hSelf, L"Cannot process this clipboard data in the history:\nThe data is too large to be treated.", L"Clipboard problem", MB_OK | MB_APPLMODAL); delete[] c; } } diff --git a/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.h b/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.h index 2601523af..d799f794e 100644 --- a/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.h +++ b/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.h @@ -21,7 +21,7 @@ #include "clipboardHistoryPanel_rc.h" #include -#define CH_PROJECTPANELTITLE TEXT("Clipboard History") +#define CH_PROJECTPANELTITLE L"Clipboard History" class ScintillaEditView; diff --git a/PowerEditor/src/WinControls/ColourPicker/ColourPicker.cpp b/PowerEditor/src/WinControls/ColourPicker/ColourPicker.cpp index 723740a9c..c8c4ad2fa 100644 --- a/PowerEditor/src/WinControls/ColourPicker/ColourPicker.cpp +++ b/PowerEditor/src/WinControls/ColourPicker/ColourPicker.cpp @@ -26,8 +26,8 @@ void ColourPicker::init(HINSTANCE hInst, HWND parent) _hSelf = ::CreateWindowEx( 0, - TEXT("Button"), - TEXT("F"), + L"Button", + L"F", WS_CHILD | WS_VISIBLE, 0, 0, 25, 25, _hParent, NULL, _hInst, (LPVOID)0); diff --git a/PowerEditor/src/WinControls/ColourPicker/ColourPopup.rc b/PowerEditor/src/WinControls/ColourPicker/ColourPopup.rc index b9b50cc4a..43d372017 100644 --- a/PowerEditor/src/WinControls/ColourPicker/ColourPopup.rc +++ b/PowerEditor/src/WinControls/ColourPicker/ColourPopup.rc @@ -20,7 +20,7 @@ IDD_COLOUR_POPUP DIALOGEX 0, 0, 132, 113 STYLE DS_SETFONT | WS_POPUP | WS_BORDER -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x0 +FONT 8, L"MS Shell Dlg", 0, 0, 0x0 BEGIN LISTBOX IDC_COLOUR_LIST,7,7,117,79, LBS_OWNERDRAWFIXED | LBS_NOINTEGRALHEIGHT | diff --git a/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.cpp b/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.cpp index 89b66eeb3..1cf8f9269 100644 --- a/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.cpp +++ b/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.cpp @@ -799,8 +799,8 @@ void WordStyleDlg::switchToTheme() NativeLangSpeaker *pNativeSpeaker = nppParamInst.getNativeLangSpeaker(); int mb_response = pNativeSpeaker->messageBox("SwitchUnsavedThemeWarning", _hSelf, - TEXT("Unsaved changes are about to be discarded!\nDo you want to save your changes before switching themes?"), - TEXT("$STR_REPLACE$"), + L"Unsaved changes are about to be discarded!\nDo you want to save your changes before switching themes?", + L"$STR_REPLACE$", MB_ICONWARNING | MB_YESNO | MB_APPLMODAL | MB_SETFOREGROUND, 0, themeFileName); @@ -1164,7 +1164,7 @@ void WordStyleDlg::setVisualFromStyleList() if (lType == L_TEXT) { generic_string lexerNameStr = lexerStyler.getLexerName(); - lexerNameStr += TEXT(" is not defined in NppParameters::getLangIDFromStr()"); + lexerNameStr += L" is not defined in NppParameters::getLangIDFromStr()"; printStr(lexerNameStr.c_str()); } const TCHAR *kws = nppParams.getWordList(lType, style._keywordClass); diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp b/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp index f2b721998..d3196d73a 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp @@ -313,8 +313,8 @@ LRESULT DockingCont::runProcCaption(HWND hwnd, UINT Message, WPARAM wParam, LPAR { DWORD dwError = ::GetLastError(); TCHAR str[128]{}; - ::wsprintf(str, TEXT("GetLastError() returned %lu"), dwError); - ::MessageBox(NULL, str, TEXT("SetWindowsHookEx(MOUSE) failed on runProcCaption"), MB_OK | MB_ICONERROR); + ::wsprintf(str, L"GetLastError() returned %lu", dwError); + ::MessageBox(NULL, str, L"SetWindowsHookEx(MOUSE) failed on runProcCaption", MB_OK | MB_ICONERROR); } ::RedrawWindow(hwnd, nullptr, nullptr, RDW_INVALIDATE); } @@ -425,7 +425,7 @@ LRESULT DockingCont::runProcCaption(HWND hwnd, UINT Message, WPARAM wParam, LPAR else { NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker(); - generic_string tip = pNativeSpeaker->getLocalizedStrFromID("close-panel-tip", TEXT("Close")); + generic_string tip = pNativeSpeaker->getLocalizedStrFromID("close-panel-tip", L"Close"); toolTip.Show(rc, tip.c_str(), pt.x, pt.y + 20); } return 0; @@ -592,7 +592,7 @@ void DockingCont::drawCaptionItem(DRAWITEMSTRUCT *pDrawItemStruct) ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_ROMAN, - TEXT("MS Shell Dlg")); + L"MS Shell Dlg"); } hOldFont = (HFONT)::SelectObject(hDc, hFont); @@ -1726,7 +1726,7 @@ void DockingCont::selectTab(int iTab) if (iItem == iTab && pszMaxTxt) { // fake here an icon before text ... - szText = TEXT(" "); + szText = L" "; szText += pszMaxTxt; } tcItem.pszText = (TCHAR *)szText.c_str(); @@ -1768,7 +1768,7 @@ bool DockingCont::updateCaption() if ((((tTbData*)tcItem.lParam)->uMask & DWS_ADDINFO) && (lstrlen(((tTbData*)tcItem.lParam)->pszAddInfo) != 0)) { - _pszCaption += TEXT(" - "); + _pszCaption += L" - "; _pszCaption += ((tTbData*)tcItem.lParam)->pszAddInfo; } diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingGUIWidget.rc b/PowerEditor/src/WinControls/DockingWnd/DockingGUIWidget.rc index 03b1aefac..08463fa8b 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingGUIWidget.rc +++ b/PowerEditor/src/WinControls/DockingWnd/DockingGUIWidget.rc @@ -23,7 +23,7 @@ STYLE DS_SETFONT | DS_SETFOREGROUND | WS_MAXIMIZEBOX | WS_POPUP | WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME EXSTYLE WS_EX_TOOLWINDOW CAPTION "Selected Tab" -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 +FONT 8, L"MS Shell Dlg", 0, 0, 0x1 BEGIN CONTROL "Caption",IDC_BTN_CAPTION,"Button",BS_OWNERDRAW | NOT WS_VISIBLE,0,0,186,10 diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp b/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp index 2a4a46c0d..04175332e 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp @@ -119,7 +119,7 @@ void DockingManager::init(HINSTANCE hInst, HWND hWnd, Window ** ppWin) _hSelf = ::CreateWindowEx( 0, DSPC_CLASS_NAME, - TEXT(""), + L"", WS_CHILD | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingManager.h b/PowerEditor/src/WinControls/DockingWnd/DockingManager.h index fae509087..05ec526d6 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingManager.h +++ b/PowerEditor/src/WinControls/DockingWnd/DockingManager.h @@ -23,7 +23,7 @@ #include "DockingCont.h" #include "SplitterContainer.h" -#define DSPC_CLASS_NAME TEXT("dockingManager") +#define DSPC_CLASS_NAME L"dockingManager" #define CONT_MAP_MAX 50 class DockingSplitter; diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp b/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp index f3cd7dedd..2a4f95691 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp @@ -37,13 +37,13 @@ void DockingSplitter::init(HINSTANCE hInst, HWND hWnd, HWND hMessage, UINT flags { //double sided arrow pointing north-south as cursor wc.hCursor = ::LoadCursor(NULL,IDC_SIZENS); - wc.lpszClassName = TEXT("nsdockspliter"); + wc.lpszClassName = L"nsdockspliter"; } else { // double sided arrow pointing east-west as cursor wc.hCursor = ::LoadCursor(NULL,IDC_SIZEWE); - wc.lpszClassName = TEXT("wedockspliter"); + wc.lpszClassName = L"wedockspliter"; } if (((_isHoriReg == FALSE) && (flags & DMS_HORIZONTAL)) || @@ -73,7 +73,7 @@ void DockingSplitter::init(HINSTANCE hInst, HWND hWnd, HWND hMessage, UINT flags } /* create splitter windows and initialize it */ - _hSelf = ::CreateWindowEx( 0, wc.lpszClassName, TEXT(""), WS_CHILD | WS_VISIBLE, + _hSelf = ::CreateWindowEx( 0, wc.lpszClassName, L"", WS_CHILD | WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, _hParent, NULL, _hInst, (LPVOID)this); diff --git a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp index ec73de036..d62a68255 100644 --- a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp @@ -108,7 +108,7 @@ void Gripper::startGrip(DockingCont* pCont, DockingManager* pDockMgr) _hSelf = ::CreateWindowEx( 0, MDLG_CLASS_NAME, - TEXT(""), 0, + L"", 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, @@ -222,8 +222,8 @@ void Gripper::create() { DWORD dwError = ::GetLastError(); TCHAR str[128]; - ::wsprintf(str, TEXT("GetLastError() returned %lu"), dwError); - ::MessageBox(NULL, str, TEXT("SetWindowsHookEx(MOUSE) failed on Gripper::create()"), MB_OK | MB_ICONERROR); + ::wsprintf(str, L"GetLastError() returned %lu", dwError); + ::MessageBox(NULL, str, L"SetWindowsHookEx(MOUSE) failed on Gripper::create()", MB_OK | MB_ICONERROR); } if (ver != WV_UNKNOWN && ver < WV_VISTA) @@ -233,8 +233,8 @@ void Gripper::create() { DWORD dwError = ::GetLastError(); TCHAR str[128]; - ::wsprintf(str, TEXT("GetLastError() returned %lu"), dwError); - ::MessageBox(NULL, str, TEXT("SetWindowsHookEx(KEYBOARD) failed on Gripper::create()"), MB_OK | MB_ICONERROR); + ::wsprintf(str, L"GetLastError() returned %lu", dwError); + ::MessageBox(NULL, str, L"SetWindowsHookEx(KEYBOARD) failed on Gripper::create()", MB_OK | MB_ICONERROR); } } // Removed regarding W9x systems @@ -474,7 +474,7 @@ void Gripper::doTabReordering(POINT pt) #if 0 extern HWND g_hMainWnd; TCHAR str[128]; - wsprintf(str, TEXT("Size: %i"), vCont.size()); + wsprintf(str, L"Size: %i", vCont.size()); ::SetWindowText(g_hMainWnd, str); #endif diff --git a/PowerEditor/src/WinControls/DockingWnd/Gripper.h b/PowerEditor/src/WinControls/DockingWnd/Gripper.h index c3b9f2d7e..85d6b5a70 100644 --- a/PowerEditor/src/WinControls/DockingWnd/Gripper.h +++ b/PowerEditor/src/WinControls/DockingWnd/Gripper.h @@ -37,7 +37,7 @@ static const WORD DotPattern[] = }; -#define MDLG_CLASS_NAME TEXT("moveDlg") +#define MDLG_CLASS_NAME L"moveDlg" class Gripper final diff --git a/PowerEditor/src/WinControls/DockingWnd/dockingResource.h b/PowerEditor/src/WinControls/DockingWnd/dockingResource.h index b03ef0037..3c92767c4 100644 --- a/PowerEditor/src/WinControls/DockingWnd/dockingResource.h +++ b/PowerEditor/src/WinControls/DockingWnd/dockingResource.h @@ -17,7 +17,7 @@ #pragma once -#define DM_NOFOCUSWHILECLICKINGCAPTION TEXT("NOFOCUSWHILECLICKINGCAPTION") +#define DM_NOFOCUSWHILECLICKINGCAPTION L"NOFOCUSWHILECLICKINGCAPTION" #define IDD_PLUGIN_DLG 103 #define IDC_EDIT1 1000 diff --git a/PowerEditor/src/WinControls/DocumentMap/documentMap.h b/PowerEditor/src/WinControls/DocumentMap/documentMap.h index 24de2a9ba..25d08b12a 100644 --- a/PowerEditor/src/WinControls/DocumentMap/documentMap.h +++ b/PowerEditor/src/WinControls/DocumentMap/documentMap.h @@ -20,13 +20,13 @@ #include "DockingDlgInterface.h" #include "documentMap_rc.h" -#define DM_PANELTITLE TEXT("Document Map") +#define DM_PANELTITLE L"Document Map" #define DOCUMENTMAP_SCROLL (WM_USER + 4) // DM_SETDEFID uses WM_USER + 1 #define DOCUMENTMAP_MOUSECLICKED (WM_USER + 5) // DM_REPOSITION uses WM_USER + 2 #define DOCUMENTMAP_MOUSEWHEEL (WM_USER + 3) -const TCHAR VIEWZONE_DOCUMENTMAP[64] = TEXT("Document map"); +const TCHAR VIEWZONE_DOCUMENTMAP[64] = L"Document map"; class ScintillaEditView; class Buffer; diff --git a/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp b/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp index 1df910009..93c2c7898 100644 --- a/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp +++ b/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp @@ -142,8 +142,8 @@ intptr_t CALLBACK FindCharsInRangeDlg::run_dlgProc(UINT message, WPARAM wParam, //STOP! NppParameters::getInstance().getNativeLangSpeaker()->messageBox("FindCharRangeValueError", _hSelf, - TEXT("You should type between 0 and 255."), - TEXT("Range Value problem"), + L"You should type between 0 and 255.", + L"Range Value problem", MB_OK); return TRUE; } diff --git a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp index e2534a0f7..4e8c2b27c 100644 --- a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp +++ b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp @@ -712,7 +712,7 @@ TCHAR GetASCII(WPARAM wParam, LPARAM lParam) int result = ToAscii(static_cast(wParam), (lParam >> 16) & 0xff, keys, &dwReturnedValue, 0); int returnvalue = (TCHAR)dwReturnedValue; if (returnvalue < 0) { returnvalue = 0; } - wsprintf(mbuffer, TEXT("return value = %d"), returnvalue); + wsprintf(mbuffer, L"return value = %d", returnvalue); if (result != 1) { returnvalue = 0; } return (TCHAR)returnvalue; @@ -1389,7 +1389,7 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { //protecting or unprotecting a cell that isn't in the list //add it as blank; - wcscat_s(buffer, TEXT("|")); + wcscat_s(buffer, L"|"); if ((BOOL)lParam) { wcscat_s(buffer, L"PA"); @@ -1398,7 +1398,7 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { wcscat_s(buffer, L"UA"); } - wcscat_s(buffer, TEXT("|")); + wcscat_s(buffer, L"|"); SendMessage(BGHS[SelfIndex].hlist1, LB_ADDSTRING, FindResult, reinterpret_cast(buffer)); } } @@ -1467,7 +1467,7 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) } //now add it - wcscat_s(buffer, TEXT("|")); + wcscat_s(buffer, L"|"); wcscat_s(buffer, BGHS[SelfIndex].protect); int iDataType = 1; @@ -1478,7 +1478,7 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) if (iDataType == 4) { wcscat_s(buffer, L"F"); } if (iDataType == 5) { wcscat_s(buffer, L"G"); } - wcscat_s(buffer, TEXT("|")); + wcscat_s(buffer, L"|"); wcscat_s(buffer, (TCHAR*)lParam); int FindResult = static_cast(SendMessage(BGHS[SelfIndex].hlist1, LB_ADDSTRING, 0, reinterpret_cast(buffer))); diff --git a/PowerEditor/src/WinControls/Grid/BabyGridWrapper.cpp b/PowerEditor/src/WinControls/Grid/BabyGridWrapper.cpp index df437ca61..7e76ade3d 100644 --- a/PowerEditor/src/WinControls/Grid/BabyGridWrapper.cpp +++ b/PowerEditor/src/WinControls/Grid/BabyGridWrapper.cpp @@ -30,7 +30,7 @@ void BabyGridWrapper::init(HINSTANCE hInst, HWND parent, int16_t id) _hSelf = ::CreateWindowEx(0, babyGridClassName, - TEXT(""), + L"", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, _hParent, diff --git a/PowerEditor/src/WinControls/Grid/ShortcutMapper.rc b/PowerEditor/src/WinControls/Grid/ShortcutMapper.rc index fb3ad1b5a..3ab92d773 100755 --- a/PowerEditor/src/WinControls/Grid/ShortcutMapper.rc +++ b/PowerEditor/src/WinControls/Grid/ShortcutMapper.rc @@ -26,7 +26,7 @@ IDD_SHORTCUTMAPPER_DLG DIALOGEX 0, 0, 450, 353 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MAXIMIZEBOX | WS_THICKFRAME CAPTION "Shortcut mapper" -FONT 8, TEXT("MS Shell Dlg"), 400, 0, 0x1 +FONT 8, L"MS Shell Dlg", 400, 0, 0x1 BEGIN CONTROL "",IDC_BABYGRID_TABBAR,"SysTabControl32",WS_TABSTOP,5,6,384,12 EDITTEXT IDC_BABYGRID_INFO,4,283,442,29,ES_MULTILINE | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL | NOT WS_TABSTOP diff --git a/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp b/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp index e8ec73617..487da236b 100644 --- a/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp +++ b/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp @@ -114,9 +114,9 @@ void Splitter::init( HINSTANCE hInst, HWND hPere, int splitterSize, double iSpli wcex.hCursor = ::LoadCursor(NULL, IDC_ARROW); // if fixed spliter then choose default cursor type. if (_dwFlags & SV_HORIZONTAL) - wcex.lpszClassName = TEXT("fxdnsspliter"); + wcex.lpszClassName = L"fxdnsspliter"; else - wcex.lpszClassName = TEXT("fxdwespliter"); + wcex.lpszClassName = L"fxdwespliter"; } else { @@ -124,13 +124,13 @@ void Splitter::init( HINSTANCE hInst, HWND hPere, int splitterSize, double iSpli { //double sided arrow pointing north-south as cursor wcex.hCursor = ::LoadCursor(NULL,IDC_SIZENS); - wcex.lpszClassName = TEXT("nsspliter"); + wcex.lpszClassName = L"nsspliter"; } else { // double sided arrow pointing east-west as cursor wcex.hCursor = ::LoadCursor(NULL,IDC_SIZEWE); - wcex.lpszClassName = TEXT("wespliter"); + wcex.lpszClassName = L"wespliter"; } } @@ -160,7 +160,7 @@ void Splitter::init( HINSTANCE hInst, HWND hPere, int splitterSize, double iSpli } _hSelf = CreateWindowEx(dwExStyle, wcex.lpszClassName, - TEXT(""), + L"", dwStyle, _rect.left, _rect.top, _rect.right, _rect.bottom, _hParent, NULL, _hInst, this); diff --git a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp index 507d18b0a..a0b0bdece 100644 --- a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp +++ b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp @@ -67,7 +67,7 @@ void SplitterContainer::create(Window *pWin0, Window *pWin1, int splitterSize, S } _hSelf = ::CreateWindowEx( - 0, SPC_CLASS_NAME, TEXT("a koi sert?"), + 0, SPC_CLASS_NAME, L"a koi sert?", WS_CHILD | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, _hParent, NULL, _hInst, this); @@ -245,9 +245,9 @@ LRESULT SplitterContainer::runProc(UINT message, WPARAM wParam, LPARAM lParam) NativeLangSpeaker* nativeLangSpeaker = NppParameters::getInstance().getNativeLangSpeaker(); const generic_string textLeft = - nativeLangSpeaker->getLocalizedStrFromID("splitter-rotate-left", TEXT("Rotate to left")); + nativeLangSpeaker->getLocalizedStrFromID("splitter-rotate-left", L"Rotate to left"); const generic_string textRight = - nativeLangSpeaker->getLocalizedStrFromID("splitter-rotate-right", TEXT("Rotate to right")); + nativeLangSpeaker->getLocalizedStrFromID("splitter-rotate-right", L"Rotate to right"); ::InsertMenu(_hPopupMenu, 1, MF_BYPOSITION, ROTATION_LEFT, textLeft.c_str()); ::InsertMenu(_hPopupMenu, 0, MF_BYPOSITION, ROTATION_RIGHT, textRight.c_str()); diff --git a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h index 18c4823ef..c3a5d3a78 100644 --- a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h +++ b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h @@ -18,7 +18,7 @@ #include "menuCmdID.h" -#define SPC_CLASS_NAME TEXT("splitterContainer") +#define SPC_CLASS_NAME L"splitterContainer" #define ROTATION_LEFT 2000 #define ROTATION_RIGHT 2001 diff --git a/PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.rc b/PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.rc index 777de4208..d93e58461 100644 --- a/PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.rc +++ b/PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.rc @@ -28,7 +28,7 @@ IDD_RUN_DLG DIALOGEX 0, 0, 186, 80 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Run..." -FONT 8, TEXT("MS Shell Dlg"), 400, 0, 0x1 +FONT 8, L"MS Shell Dlg", 400, 0, 0x1 BEGIN GROUPBOX "The &Program to Run",IDC_MAINTEXT_STATIC,7,6,172,48,BS_CENTER COMBOBOX IDC_COMBO_RUN_PATH,14,26,138,71,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP diff --git a/PowerEditor/src/WinControls/TabBar/ControlsTab.h b/PowerEditor/src/WinControls/TabBar/ControlsTab.h index fd01f04e4..7a284b8fc 100644 --- a/PowerEditor/src/WinControls/TabBar/ControlsTab.h +++ b/PowerEditor/src/WinControls/TabBar/ControlsTab.h @@ -27,7 +27,7 @@ struct DlgInfo generic_string _name; generic_string _internalName; - DlgInfo(Window *dlg, const TCHAR *name, const TCHAR *internalName = TEXT("")): _dlg(dlg), _name(name), _internalName(internalName) {}; + DlgInfo(Window *dlg, const TCHAR *name, const TCHAR *internalName = L""): _dlg(dlg), _name(name), _internalName(internalName) {}; }; typedef std::vector WindowVector; diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index c6b4e6a6c..fcc94b3ab 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -1145,7 +1145,7 @@ void TabBarPlus::drawItem(DRAWITEMSTRUCT *pDrawItemStruct, bool isDarkMode) int nTab = pDrawItemStruct->itemID; if (nTab < 0) { - ::MessageBox(NULL, TEXT("nTab < 0"), L"", MB_OK); + ::MessageBox(NULL, L"nTab < 0", L"", MB_OK); } bool isSelected = (nTab == ::SendMessage(_hSelf, TCM_GETCURSEL, 0, 0)); @@ -1157,7 +1157,7 @@ void TabBarPlus::drawItem(DRAWITEMSTRUCT *pDrawItemStruct, bool isDarkMode) if (!::SendMessage(_hSelf, TCM_GETITEM, nTab, reinterpret_cast(&tci))) { - std::wstring errorMessageTitle = TEXT("TabBarPlus::drawItem wrong: ! TCM_GETITEM"); + std::wstring errorMessageTitle = L"TabBarPlus::drawItem wrong: ! TCM_GETITEM"; std::wstring errorMessage = GetLastErrorAsString(GetLastError()); ::MessageBox(NULL, errorMessage.c_str(), errorMessageTitle.c_str(), MB_OK); } diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.h b/PowerEditor/src/WinControls/TabBar/TabBar.h index 17f27ff45..6ca924888 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.h +++ b/PowerEditor/src/WinControls/TabBar/TabBar.h @@ -43,10 +43,10 @@ const int marge = 8; const int nbCtrlMax = 10; -const TCHAR TABBAR_ACTIVEFOCUSEDINDCATOR[64] = TEXT("Active tab focused indicator"); -const TCHAR TABBAR_ACTIVEUNFOCUSEDINDCATOR[64] = TEXT("Active tab unfocused indicator"); -const TCHAR TABBAR_ACTIVETEXT[64] = TEXT("Active tab text"); -const TCHAR TABBAR_INACTIVETEXT[64] = TEXT("Inactive tabs"); +const TCHAR TABBAR_ACTIVEFOCUSEDINDCATOR[64] = L"Active tab focused indicator"; +const TCHAR TABBAR_ACTIVEUNFOCUSEDINDCATOR[64] = L"Active tab unfocused indicator"; +const TCHAR TABBAR_ACTIVETEXT[64] = L"Active tab text"; +const TCHAR TABBAR_INACTIVETEXT[64] = L"Inactive tabs"; constexpr int g_TabIconSize = 16; constexpr int g_TabHeight = 22; diff --git a/PowerEditor/src/WinControls/TaskList/TaskList.cpp b/PowerEditor/src/WinControls/TaskList/TaskList.cpp index d3fde91aa..51c047dde 100644 --- a/PowerEditor/src/WinControls/TaskList/TaskList.cpp +++ b/PowerEditor/src/WinControls/TaskList/TaskList.cpp @@ -42,7 +42,7 @@ void TaskList::init(HINSTANCE hInst, HWND parent, HIMAGELIST hImaLst, int nbItem | LVS_SHAREIMAGELISTS/* | WS_BORDER*/; _hSelf = ::CreateWindow(WC_LISTVIEW, - TEXT(""), + L"", WS_CHILD | listViewStyles, 0, 0, @@ -94,7 +94,7 @@ RECT TaskList::adjustSize() RECT rc{}; ListView_GetItemRect(_hSelf, 0, &rc, LVIR_ICON); const int imgWidth = rc.right - rc.left; - const int aSpaceWidth = ListView_GetStringWidth(_hSelf, TEXT(" ")); + const int aSpaceWidth = ListView_GetStringWidth(_hSelf, L" "); const int paddedBorder = ::GetSystemMetrics(SM_CXPADDEDBORDER); const int leftMarge = (::GetSystemMetrics(SM_CXFRAME) + paddedBorder) * 2 + aSpaceWidth * 4; diff --git a/PowerEditor/src/WinControls/TaskList/TaskListDlg.cpp b/PowerEditor/src/WinControls/TaskList/TaskListDlg.cpp index a1618405e..d4dce0d34 100644 --- a/PowerEditor/src/WinControls/TaskList/TaskListDlg.cpp +++ b/PowerEditor/src/WinControls/TaskList/TaskListDlg.cpp @@ -80,7 +80,7 @@ intptr_t CALLBACK TaskListDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM l i2set = 0; _taskList.init(_hInst, _hSelf, _hImalist, nbTotal, i2set); - _taskList.setFont(TEXT("Verdana"), NppParameters::getInstance()._dpiManager.scaleY(14)); + _taskList.setFont(L"Verdana", NppParameters::getInstance()._dpiManager.scaleY(14)); _rc = _taskList.adjustSize(); reSizeTo(_rc); @@ -203,7 +203,7 @@ void TaskListDlg::drawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) const TCHAR *label = _taskListInfo._tlfsLst[nItem]._fn.c_str(); int iImage = _taskListInfo._tlfsLst[nItem]._status; - const int aSpaceWidth = ListView_GetStringWidth(_taskList.getHSelf(), TEXT(" ")); + const int aSpaceWidth = ListView_GetStringWidth(_taskList.getHSelf(), L" "); COLORREF textColor = NppDarkMode::isEnabled() ? NppDarkMode::getDarkerTextColor() : darkGrey; int imgStyle = ILD_SELECTED; diff --git a/PowerEditor/src/WinControls/TaskList/TaskListDlg.rc b/PowerEditor/src/WinControls/TaskList/TaskListDlg.rc index 0b68254c6..7b0990998 100644 --- a/PowerEditor/src/WinControls/TaskList/TaskListDlg.rc +++ b/PowerEditor/src/WinControls/TaskList/TaskListDlg.rc @@ -20,7 +20,7 @@ IDD_TASKLIST_DLG DIALOGEX DISCARDABLE 0, 0, 300, 300 STYLE WS_POPUP | WS_VISIBLE | WS_THICKFRAME -FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 +FONT 8, L"MS Shell Dlg", 0, 0, 0x1 BEGIN END diff --git a/PowerEditor/src/WinControls/TrayIcon/trayIconControler.cpp b/PowerEditor/src/WinControls/TrayIcon/trayIconControler.cpp index 4246273c4..cbcdbbe0a 100644 --- a/PowerEditor/src/WinControls/TrayIcon/trayIconControler.cpp +++ b/PowerEditor/src/WinControls/TrayIcon/trayIconControler.cpp @@ -27,7 +27,7 @@ trayIconControler::trayIconControler(HWND hwnd, UINT uID, UINT uCBMsg, HICON hic _nid.hIcon = hicon; wcscpy_s(_nid.szTip, tip); - ::RegisterWindowMessage(TEXT("TaskbarCreated")); + ::RegisterWindowMessage(L"TaskbarCreated"); _isIconShowed = false; } diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h index 4f77fbc55..75a3d8f1b 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h +++ b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h @@ -21,7 +21,7 @@ #include "VerticalFileSwitcher_rc.h" #include "VerticalFileSwitcherListView.h" -#define FS_PROJECTPANELTITLE TEXT("Document List") +#define FS_PROJECTPANELTITLE L"Document List" struct sortCompareData { HWND hListView = nullptr; diff --git a/PowerEditor/src/WinControls/WindowsDlg/WinMgr.cpp b/PowerEditor/src/WinControls/WindowsDlg/WinMgr.cpp index 965c3823d..67d1518cd 100644 --- a/PowerEditor/src/WinControls/WindowsDlg/WinMgr.cpp +++ b/PowerEditor/src/WinControls/WindowsDlg/WinMgr.cpp @@ -20,7 +20,7 @@ inline static DWORD GetExStyle(HWND hWnd) { return (DWORD)GetWindowLongPtr(hWnd, GWL_EXSTYLE); } -const UINT WM_WINMGR = RegisterWindowMessage(TEXT("WM_WINMGR")); +const UINT WM_WINMGR = RegisterWindowMessage(L"WM_WINMGR"); CWinMgr::CWinMgr(WINRECT* pWinMap) : m_map(pWinMap) { diff --git a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp index b5cba852d..e5d908fca 100644 --- a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp +++ b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp @@ -42,8 +42,8 @@ using namespace std; #define WD_MENUCOPYNAME "MenuCopyName" #define WD_MENUCOPYPATH "MenuCopyPath" -static const TCHAR *readonlyString = TEXT(" [Read Only]"); -const UINT WDN_NOTIFY = RegisterWindowMessage(TEXT("WDN_NOTIFY")); +static const TCHAR *readonlyString = L" [Read Only]"; +const UINT WDN_NOTIFY = RegisterWindowMessage(L"WDN_NOTIFY"); /* inline static DWORD GetStyle(HWND hWnd) { return (DWORD)GetWindowLongPtr(hWnd, GWL_STYLE); @@ -489,8 +489,8 @@ intptr_t CALLBACK WindowsDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP NativeLangSpeaker* pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker(); const std::vector itemUnitArray { - {IDM_WINDOW_COPY_NAME, pNativeSpeaker->getAttrNameStr(TEXT("Copy Name(s)"), WD_ROOTNODE, WD_MENUCOPYNAME)}, - {IDM_WINDOW_COPY_PATH, pNativeSpeaker->getAttrNameStr(TEXT("Copy Pathname(s)"), WD_ROOTNODE, WD_MENUCOPYPATH)} + {IDM_WINDOW_COPY_NAME, pNativeSpeaker->getAttrNameStr(L"Copy Name(s)", WD_ROOTNODE, WD_MENUCOPYNAME)}, + {IDM_WINDOW_COPY_PATH, pNativeSpeaker->getAttrNameStr(L"Copy Pathname(s)", WD_ROOTNODE, WD_MENUCOPYPATH)} }; _listMenu.create(_hSelf, itemUnitArray); } @@ -601,23 +601,23 @@ BOOL WindowsDlg::onInitDialog() generic_string columnText; NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker(); - columnText = TEXT("⇵ ") + pNativeSpeaker->getAttrNameStr(L"Name", WD_ROOTNODE, WD_CLMNNAME); + columnText = L"⇵ " + pNativeSpeaker->getAttrNameStr(L"Name", WD_ROOTNODE, WD_CLMNNAME); lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = width / 4; SendMessage(_hList, LVM_INSERTCOLUMN, 0, LPARAM(&lvColumn)); - columnText = TEXT("⇵ ") + pNativeSpeaker->getAttrNameStr(L"Path", WD_ROOTNODE, WD_CLMNPATH); + columnText = L"⇵ " + pNativeSpeaker->getAttrNameStr(L"Path", WD_ROOTNODE, WD_CLMNPATH); lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = 300; SendMessage(_hList, LVM_INSERTCOLUMN, 1, LPARAM(&lvColumn)); lvColumn.fmt = LVCFMT_CENTER; - columnText = TEXT("⇵ ") + pNativeSpeaker->getAttrNameStr(L"Type", WD_ROOTNODE, WD_CLMNTYPE); + columnText = L"⇵ " + pNativeSpeaker->getAttrNameStr(L"Type", WD_ROOTNODE, WD_CLMNTYPE); lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = 100; SendMessage(_hList, LVM_INSERTCOLUMN, 2, LPARAM(&lvColumn)); - columnText = TEXT("⇵ ") + pNativeSpeaker->getAttrNameStr(L"Size", WD_ROOTNODE, WD_CLMNSIZE); + columnText = L"⇵ " + pNativeSpeaker->getAttrNameStr(L"Size", WD_ROOTNODE, WD_CLMNSIZE); lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = 100; SendMessage(_hList, LVM_INSERTCOLUMN, 3, LPARAM(&lvColumn)); @@ -650,15 +650,15 @@ void WindowsDlg::updateColumnNames() columnText = pNativeSpeaker->getAttrNameStr(L"Name", WD_ROOTNODE, WD_CLMNNAME); if (_currentColumn != 0) { - columnText = TEXT("⇵ ") + columnText; + columnText = L"⇵ " + columnText; } else if (_reverseSort) { - columnText = TEXT("△ ") + columnText; + columnText = L"△ " + columnText; } else { - columnText = TEXT("▽ ") + columnText; + columnText = L"▽ " + columnText; } lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = static_cast(SendMessage(_hList, LVM_GETCOLUMNWIDTH, 0, 0)); @@ -667,15 +667,15 @@ void WindowsDlg::updateColumnNames() columnText = pNativeSpeaker->getAttrNameStr(L"Path", WD_ROOTNODE, WD_CLMNPATH); if (_currentColumn != 1) { - columnText = TEXT("⇵ ") + columnText; + columnText = L"⇵ " + columnText; } else if (_reverseSort) { - columnText = TEXT("△ ") + columnText; + columnText = L"△ " + columnText; } else { - columnText = TEXT("▽ ") + columnText; + columnText = L"▽ " + columnText; } lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = static_cast(SendMessage(_hList, LVM_GETCOLUMNWIDTH, 1, 0)); @@ -685,15 +685,15 @@ void WindowsDlg::updateColumnNames() columnText = pNativeSpeaker->getAttrNameStr(L"Type", WD_ROOTNODE, WD_CLMNTYPE); if (_currentColumn != 2) { - columnText = TEXT("⇵ ") + columnText; + columnText = L"⇵ " + columnText; } else if (_reverseSort) { - columnText = TEXT("△ ") + columnText; + columnText = L"△ " + columnText; } else { - columnText = TEXT("▽ ") + columnText; + columnText = L"▽ " + columnText; } lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = static_cast(SendMessage(_hList, LVM_GETCOLUMNWIDTH, 2, 0)); @@ -702,15 +702,15 @@ void WindowsDlg::updateColumnNames() columnText = pNativeSpeaker->getAttrNameStr(L"Size", WD_ROOTNODE, WD_CLMNSIZE); if (_currentColumn != 3) { - columnText = TEXT("⇵ ") + columnText; + columnText = L"⇵ " + columnText; } else if (_reverseSort) { - columnText = TEXT("△ ") + columnText; + columnText = L"△ " + columnText; } else { - columnText = TEXT("▽ ") + columnText; + columnText = L"▽ " + columnText; } lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = static_cast(SendMessage(_hList, LVM_GETCOLUMNWIDTH, 3, 0)); diff --git a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.rc b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.rc index 428b623ec..8a32edf08 100644 --- a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.rc +++ b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.rc @@ -21,9 +21,9 @@ IDD_WINDOWS DIALOGEX 0, 0, 450, 300 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | DS_MODALFRAME CAPTION "Windows" -FONT 8, TEXT("MS Shell Dlg"), 400, 0, 0x1 +FONT 8, L"MS Shell Dlg", 400, 0, 0x1 BEGIN - CONTROL "", IDC_WINDOWS_LIST, TEXT("SysListView32"), LVS_REPORT | LVS_OWNERDATA | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP, 7, 7, 206, 160 + CONTROL "", IDC_WINDOWS_LIST, L"SysListView32", LVS_REPORT | LVS_OWNERDATA | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP, 7, 7, 206, 160 DEFPUSHBUTTON "&Activate",IDOK,219,7,60,14 PUSHBUTTON "&Save",IDC_WINDOWS_SAVE,219,26,60,14 PUSHBUTTON "&Close window(s)",IDC_WINDOWS_CLOSE,219,44,60,14 diff --git a/PowerEditor/src/WinControls/shortcut/RunMacroDlg.cpp b/PowerEditor/src/WinControls/shortcut/RunMacroDlg.cpp index 4456af590..270a98c22 100644 --- a/PowerEditor/src/WinControls/shortcut/RunMacroDlg.cpp +++ b/PowerEditor/src/WinControls/shortcut/RunMacroDlg.cpp @@ -31,7 +31,7 @@ void RunMacroDlg::initMacroList() ::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_RESETCONTENT, 0, 0); if (static_cast(::SendMessage(_hParent, NPPM_GETCURRENTMACROSTATUS, 0, 0)) == MacroStatus::RecordingStopped) - ::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_ADDSTRING, 0, reinterpret_cast(TEXT("Current recorded macro"))); + ::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_ADDSTRING, 0, reinterpret_cast(L"Current recorded macro")); for (size_t i = 0, len = macroList.size(); i < len ; ++i) ::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_ADDSTRING, 0, reinterpret_cast(string2wstring(macroList[i].getName(), CP_UTF8).c_str())); diff --git a/PowerEditor/src/WinControls/shortcut/RunMacroDlg.rc b/PowerEditor/src/WinControls/shortcut/RunMacroDlg.rc index e8901a9c5..d6d5c497b 100644 --- a/PowerEditor/src/WinControls/shortcut/RunMacroDlg.rc +++ b/PowerEditor/src/WinControls/shortcut/RunMacroDlg.rc @@ -23,7 +23,7 @@ IDD_RUN_MACRO_DLG DIALOGEX 0, 0, 168, 95 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Run a Macro Multiple Times" -FONT 8, TEXT("MS Shell Dlg"), 400, 0, 0x1 +FONT 8, L"MS Shell Dlg", 400, 0, 0x1 BEGIN GROUPBOX "&Macro to run",IDC_MACRO2RUN_STATIC,7,3,154,30,BS_CENTER COMBOBOX IDC_MACRO_COMBO,14,14,140,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP diff --git a/PowerEditor/src/WinControls/shortcut/shortcut.cpp b/PowerEditor/src/WinControls/shortcut/shortcut.cpp index 99d471ce2..d9860bd5e 100644 --- a/PowerEditor/src/WinControls/shortcut/shortcut.cpp +++ b/PowerEditor/src/WinControls/shortcut/shortcut.cpp @@ -999,7 +999,7 @@ void ScintillaAccelerator::updateMenuItemByID(const ScintillaKeyMap& skm, int id generic_string menuItem = cmdName; if (skm.isEnabled()) { - menuItem += TEXT("\t"); + menuItem += L"\t"; menuItem += string2wstring(skm.toString(), CP_UTF8); } ::ModifyMenu(_hAccelMenu, id, MF_BYCOMMAND, id, menuItem.c_str()); diff --git a/PowerEditor/src/WinControls/shortcut/shortcut.rc b/PowerEditor/src/WinControls/shortcut/shortcut.rc index 2dd46542a..f417f97c1 100644 --- a/PowerEditor/src/WinControls/shortcut/shortcut.rc +++ b/PowerEditor/src/WinControls/shortcut/shortcut.rc @@ -26,7 +26,7 @@ IDD_SHORTCUT_DLG DIALOGEX 0, 0, 180, 97 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Shortcut" -FONT 8, TEXT("MS Shell Dlg"), 400, 0, 0x1 +FONT 8, L"MS Shell Dlg", 400, 0, 0x1 BEGIN RTEXT "&Name:",IDC_NAME_STATIC,10,9,43,8 EDITTEXT IDC_NAME_EDIT,56,8,118,12,ES_AUTOHSCROLL @@ -46,7 +46,7 @@ IDD_SHORTCUTSCINT_DLG DIALOGEX 0, 0, 282, 115 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE CAPTION "Shortcut" -FONT 8, TEXT("MS Shell Dlg"), 400, 0, 0x1 +FONT 8, L"MS Shell Dlg", 400, 0, 0x1 BEGIN RTEXT "&Name:",IDC_NAME_STATIC,111,9,43,8 EDITTEXT IDC_NAME_EDIT,158,8,118,12,ES_AUTOHSCROLL | ES_READONLY diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h index 5a2e3752a..b33b4dcd2 100644 --- a/PowerEditor/src/resource.h +++ b/PowerEditor/src/resource.h @@ -19,13 +19,13 @@ // // Notepad++ version: begin // -#define NOTEPAD_PLUS_VERSION TEXT("Notepad++ v8.6.9") +#define NOTEPAD_PLUS_VERSION L"Notepad++ v8.6.9" // should be X.Y : ie. if VERSION_DIGITALVALUE == 4, 7, 1, 0 , then X = 4, Y = 71 -// ex : #define VERSION_VALUE TEXT("5.63\0") -#define VERSION_INTERNAL_VALUE TEXT("8.69\0") +// ex : #define VERSION_VALUE L"5.63\0" +#define VERSION_INTERNAL_VALUE L"8.69\0" -#define VERSION_PRODUCT_VALUE TEXT("8.6.9\0") +#define VERSION_PRODUCT_VALUE L"8.6.9\0" #define VERSION_DIGITALVALUE 8, 6, 9, 0 // Notepad++ version: end