diff --git a/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h b/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h index 8a6de512..1421a374 100644 --- a/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h +++ b/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h @@ -228,13 +228,13 @@ enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV // allocate fullFilePath with the return values + 1, then call it again to get full path file name #define NPPM_GETBUFFERIDFROMPOS (NPPMSG + 59) - // INT NPPM_GETBUFFERIDFROMPOS(INT index, INT iView) + // LRESULT NPPM_GETBUFFERIDFROMPOS(INT index, INT iView) // wParam: Position of document // lParam: View to use, 0 = Main, 1 = Secondary // Returns 0 if invalid #define NPPM_GETCURRENTBUFFERID (NPPMSG + 60) - // INT NPPM_GETCURRENTBUFFERID(0, 0) + // LRESULT NPPM_GETCURRENTBUFFERID(0, 0) // Returns active Buffer #define NPPM_RELOADBUFFERID (NPPMSG + 61) diff --git a/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp b/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp index 9048cfae..ce0aebc9 100644 --- a/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp +++ b/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp @@ -417,7 +417,7 @@ void PluginsManager::notify(const SCNotification *notification) ::MessageBoxA(NULL, e.what(), "Exception", MB_OK); } catch (...) { TCHAR funcInfo[128]; - generic_sprintf(funcInfo, TEXT("notify(SCNotification *notification) : \r notification->nmhdr.code == %d\r notification->nmhdr.hwndFrom == %d\r notification->nmhdr.idFrom == %d"),\ + generic_sprintf(funcInfo, TEXT("notify(SCNotification *notification) : \r notification->nmhdr.code == %d\r notification->nmhdr.hwndFrom == %p\r notification->nmhdr.idFrom == %d"),\ scNotif.nmhdr.code, scNotif.nmhdr.hwndFrom, scNotif.nmhdr.idFrom); pluginCrashAlert(_pluginsCommands[i]._pluginName.c_str(), funcInfo); } diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index aadbf75e..1bdb89bc 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3197,7 +3197,7 @@ void Notepad_plus::loadBufferIntoView(BufferID id, int whichOne, bool dontClose) activateBuffer(id, whichOne); //activate. DocTab already activated but not a problem MainFileManager->closeBuffer(idToClose, viewToOpen); //delete the buffer if (_pFileSwitcherPanel) - _pFileSwitcherPanel->closeItem((int)idToClose, whichOne); + _pFileSwitcherPanel->closeItem(idToClose, whichOne); } else { @@ -4728,7 +4728,7 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask) } if (_pFileSwitcherPanel) - _pFileSwitcherPanel->setItemIconStatus((int)buffer); + _pFileSwitcherPanel->setItemIconStatus(buffer); if (!mainActive && !subActive) { @@ -4828,7 +4828,7 @@ void Notepad_plus::notifyBufferActivated(BufferID bufid, int view) if (_pFileSwitcherPanel) { - _pFileSwitcherPanel->activateItem((int)bufid, currentView()); + _pFileSwitcherPanel->activateItem(bufid, currentView()); } if (_pDocMap && (!_pDocMap->isClosed()) && _pDocMap->isVisible()) diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 9bf29132..cf93f844 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -71,7 +71,7 @@ LRESULT CALLBACK Notepad_plus_Window::Notepad_plus_Proc(HWND hwnd, UINT Message, switch(Message) { case WM_NCCREATE : // First message we get the ptr of instantiated object - // then stock it into GWL_USERDATA index in order to retrieve afterward + // then stock it into GWLP_USERDATA index in order to retrieve afterward { Notepad_plus_Window *pM30ide = (Notepad_plus_Window *)(((LPCREATESTRUCT)lParam)->lpCreateParams); pM30ide->_hSelf = hwnd; @@ -82,7 +82,7 @@ LRESULT CALLBACK Notepad_plus_Window::Notepad_plus_Proc(HWND hwnd, UINT Message, default : { - return ((Notepad_plus_Window *)::GetWindowLongPtr(hwnd, GWL_USERDATA))->runProc(hwnd, Message, wParam, lParam); + return ((Notepad_plus_Window *)::GetWindowLongPtr(hwnd, GWLP_USERDATA))->runProc(hwnd, Message, wParam, lParam); } } } diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index 99ce523c..36df2a6a 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -101,7 +101,7 @@ void Notepad_plus::command(int id) if (id == IDM_FILESWITCHER_FILESCLOSEOTHERS) { // Get current buffer and its view - _pFileSwitcherPanel->activateItem(int(_pEditView->getCurrentBufferID()), currentView()); + _pFileSwitcherPanel->activateItem(_pEditView->getCurrentBufferID(), currentView()); } } break; diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 8fd20fc9..f4dc2a9c 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -244,7 +244,7 @@ BufferID Notepad_plus::doOpen(const TCHAR *fileName, bool isRecursive, bool isRe scnN.nmhdr.code = NPPN_FILEOPENED; _pluginsManager.notify(&scnN); if (_pFileSwitcherPanel) - _pFileSwitcherPanel->newItem((int)buf, currentView()); + _pFileSwitcherPanel->newItem(buf, currentView()); } else { @@ -533,14 +533,14 @@ void Notepad_plus::doClose(BufferID id, int whichOne, bool doDeleteBackup) //Do all the works bool isBufRemoved = removeBufferFromView(id, whichOne); - int hiddenBufferID = -1; + BufferID hiddenBufferID = BUFFER_INVALID; if (nrDocs == 1 && canHideView(whichOne)) { //close the view if both visible hideView(whichOne); // if the current activated buffer is in this view, // then get buffer ID to remove the entry from File Switcher Pannel - hiddenBufferID = ::SendMessage(_pPublicInterface->getHSelf(), NPPM_GETBUFFERIDFROMPOS, 0, whichOne); + hiddenBufferID = reinterpret_cast(::SendMessage(_pPublicInterface->getHSelf(), NPPM_GETBUFFERIDFROMPOS, 0, whichOne)); } // Notify plugins that current file is closed @@ -550,15 +550,15 @@ void Notepad_plus::doClose(BufferID id, int whichOne, bool doDeleteBackup) _pluginsManager.notify(&scnN); // The document could be clonned. - // if the same buffer ID is not found then remove the entry from File Switcher Pannel + // if the same buffer ID is not found then remove the entry from File Switcher Panel if (_pFileSwitcherPanel) { //int posInfo = ::SendMessage(_pPublicInterface->getHSelf(), NPPM_GETPOSFROMBUFFERID, (WPARAM)id ,0); - _pFileSwitcherPanel->closeItem((int)id, whichOne); + _pFileSwitcherPanel->closeItem(id, whichOne); - if (hiddenBufferID != -1) - _pFileSwitcherPanel->closeItem((int)hiddenBufferID, whichOne); + if (hiddenBufferID != BUFFER_INVALID) + _pFileSwitcherPanel->closeItem(hiddenBufferID, whichOne); } } command(IDM_VIEW_REFRESHTABAR); diff --git a/PowerEditor/src/Parameters.h b/PowerEditor/src/Parameters.h index 7f338476..0fe24000 100644 --- a/PowerEditor/src/Parameters.h +++ b/PowerEditor/src/Parameters.h @@ -1365,7 +1365,7 @@ public: // if (percent == 255) then opacq void SetTransparent(HWND hwnd, int percent) { if (!_transparentFuncAddr) return; - ::SetWindowLongPtr(hwnd, GWL_EXSTYLE, ::GetWindowLongPtrW(hwnd, GWL_EXSTYLE) | 0x00080000); + ::SetWindowLongPtr(hwnd, GWL_EXSTYLE, ::GetWindowLongPtr(hwnd, GWL_EXSTYLE) | 0x00080000); if (percent > 255) percent = 255; if (percent < 0) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 0fcfbdc2..786d8957 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -197,7 +197,7 @@ void Searching::displaySectionCentered(int posStart, int posEnd, ScintillaEditVi pEditView->execute(SCI_SETANCHOR, posStart); } -LONG FindReplaceDlg::originalFinderProc = NULL; +LONG_PTR FindReplaceDlg::originalFinderProc = NULL; void FindReplaceDlg::addText2Combo(const TCHAR * txt2add, HWND hCombo, bool) { @@ -2264,8 +2264,8 @@ LRESULT FAR PASCAL FindReplaceDlg::finderProc(HWND hwnd, UINT message, WPARAM wP { if (message == WM_KEYDOWN && (wParam == VK_DELETE || wParam == VK_RETURN)) { - ScintillaEditView *pScint = (ScintillaEditView *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)); - Finder *pFinder = (Finder *)(::GetWindowLongPtr(pScint->getHParent(), GWL_USERDATA)); + ScintillaEditView *pScint = (ScintillaEditView *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)); + Finder *pFinder = (Finder *)(::GetWindowLongPtr(pScint->getHParent(), GWLP_USERDATA)); if (wParam == VK_RETURN) pFinder->GotoFoundLine(); else // VK_DELETE diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h index 6e2a312a..788a2266 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h @@ -308,7 +308,7 @@ protected : virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); void addText2Combo(const TCHAR * txt2add, HWND comboID, bool isUTF8 = false); generic_string getTextFromCombo(HWND hCombo, bool isUnicode = false) const; - static LONG originalFinderProc; + static LONG_PTR originalFinderProc; // Window procedure for the finder static LRESULT FAR PASCAL finderProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index c21646fc..f85d9c27 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -257,19 +257,9 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere) _codepage = ::GetACP(); - //Use either Unicode or ANSI setwindowlong, depending on environment - if (::IsWindowUnicode(_hSelf)) - { - ::SetWindowLongPtrW(_hSelf, GWL_USERDATA, reinterpret_cast(this)); - _callWindowProc = CallWindowProcW; - _scintillaDefaultProc = reinterpret_cast(::SetWindowLongPtrW(_hSelf, GWL_WNDPROC, reinterpret_cast(scintillaStatic_Proc))); - } - else - { - ::SetWindowLongPtrA(_hSelf, GWL_USERDATA, reinterpret_cast(this)); - _callWindowProc = CallWindowProcA; - _scintillaDefaultProc = reinterpret_cast(::SetWindowLongPtrA(_hSelf, GWL_WNDPROC, reinterpret_cast(scintillaStatic_Proc))); - } + ::SetWindowLongPtr(_hSelf, GWLP_USERDATA, reinterpret_cast(this)); + _callWindowProc = CallWindowProc; + _scintillaDefaultProc = reinterpret_cast(::SetWindowLongPtr(_hSelf, GWLP_WNDPROC, reinterpret_cast(scintillaStatic_Proc))); //Get the startup document and make a buffer for it so it can be accessed like a file attachDefaultDoc(); @@ -277,7 +267,7 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere) LRESULT CALLBACK ScintillaEditView::scintillaStatic_Proc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - ScintillaEditView *pScint = (ScintillaEditView *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)); + ScintillaEditView *pScint = (ScintillaEditView *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)); if (Message == WM_MOUSEWHEEL || Message == WM_MOUSEHWHEEL) { @@ -295,7 +285,7 @@ LRESULT CALLBACK ScintillaEditView::scintillaStatic_Proc(HWND hwnd, UINT Message if (isSynpnatic || makeTouchPadCompetible) return (pScint->scintillaNew_Proc(hwnd, Message, wParam, lParam)); - ScintillaEditView *pScintillaOnMouse = (ScintillaEditView *)(::GetWindowLongPtr(hwndOnMouse, GWL_USERDATA)); + ScintillaEditView *pScintillaOnMouse = (ScintillaEditView *)(::GetWindowLongPtr(hwndOnMouse, GWLP_USERDATA)); if (pScintillaOnMouse != pScint) return ::SendMessage(hwndOnMouse, Message, wParam, lParam); } diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h index f06e6440..c5f328a1 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h @@ -83,7 +83,7 @@ class NppParameters; #define NB_WORD_LIST 4 #define WORD_LIST_LEN 256 -typedef int (* SCINTILLA_FUNC) (void*, int, int, int); +typedef sptr_t(*SCINTILLA_FUNC) (void *, unsigned int, uptr_t, sptr_t); typedef void * SCINTILLA_PTR; #define WM_DOCK_USERDEFINE_DLG (SCINTILLA_USER + 1) @@ -238,7 +238,7 @@ public: virtual void init(HINSTANCE hInst, HWND hPere); LRESULT execute(UINT Msg, WPARAM wParam=0, LPARAM lParam=0) const { - return _pScintillaFunc(_pScintillaPtr, static_cast(Msg), static_cast(wParam), static_cast(lParam)); + return _pScintillaFunc(_pScintillaPtr, Msg, wParam, lParam); }; void activateBuffer(BufferID buffer); diff --git a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp index 3218ac2c..169c22df 100644 --- a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp +++ b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp @@ -33,7 +33,7 @@ #include "AboutDlg.h" #include "Parameters.h" -BOOL CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) +INT_PTR CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { diff --git a/PowerEditor/src/WinControls/AboutDlg/URLCtrl.h b/PowerEditor/src/WinControls/AboutDlg/URLCtrl.h index 6a818b50..196a8d12 100644 --- a/PowerEditor/src/WinControls/AboutDlg/URLCtrl.h +++ b/PowerEditor/src/WinControls/AboutDlg/URLCtrl.h @@ -56,7 +56,7 @@ protected : bool _clicking; static LRESULT CALLBACK URLCtrlProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam){ - return ((URLCtrl *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(hwnd, Message, wParam, lParam); + return ((URLCtrl *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(hwnd, Message, wParam, lParam); }; LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); }; diff --git a/PowerEditor/src/WinControls/AnsiCharPanel/ListView.h b/PowerEditor/src/WinControls/AnsiCharPanel/ListView.h index 6a510161..e19e22c4 100644 --- a/PowerEditor/src/WinControls/AnsiCharPanel/ListView.h +++ b/PowerEditor/src/WinControls/AnsiCharPanel/ListView.h @@ -52,7 +52,7 @@ protected: LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK staticProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((ListView *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); + return (((ListView *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); }; }; diff --git a/PowerEditor/src/WinControls/ColourPicker/ColourPicker.h b/PowerEditor/src/WinControls/ColourPicker/ColourPicker.h index c1d32cb8..a99b1622 100644 --- a/PowerEditor/src/WinControls/ColourPicker/ColourPicker.h +++ b/PowerEditor/src/WinControls/ColourPicker/ColourPicker.h @@ -57,7 +57,7 @@ private : bool _isEnabled; static LRESULT CALLBACK staticWinProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((ColourPicker *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(Message, wParam, lParam)); + return (((ColourPicker *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(Message, wParam, lParam)); }; LRESULT runProc(UINT Message, WPARAM wParam, LPARAM lParam); void drawForeground(HDC hDC); diff --git a/PowerEditor/src/WinControls/ColourPicker/ColourPopup.cpp b/PowerEditor/src/WinControls/ColourPicker/ColourPopup.cpp index 34224580..5cd271ae 100644 --- a/PowerEditor/src/WinControls/ColourPicker/ColourPopup.cpp +++ b/PowerEditor/src/WinControls/ColourPicker/ColourPopup.cpp @@ -77,7 +77,7 @@ INT_PTR CALLBACK ColourPopup::dlgProc(HWND hwnd, UINT message, WPARAM wParam, LP default : { - ColourPopup *pColourPopup = reinterpret_cast(::GetWindowLongPtr(hwnd, GWL_USERDATA)); + ColourPopup *pColourPopup = reinterpret_cast(::GetWindowLongPtr(hwnd, GWLP_USERDATA)); if (!pColourPopup) return FALSE; return pColourPopup->run_dlgProc(message, wParam, lParam); @@ -85,7 +85,7 @@ INT_PTR CALLBACK ColourPopup::dlgProc(HWND hwnd, UINT message, WPARAM wParam, LP } } -BOOL CALLBACK ColourPopup::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) +INT_PTR CALLBACK ColourPopup::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (message) diff --git a/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.h b/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.h index fb7a9f6d..00d91540 100644 --- a/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.h +++ b/PowerEditor/src/WinControls/ColourPicker/WordStyleDlg.h @@ -60,7 +60,7 @@ private : WNDPROC _oldProc; static LRESULT CALLBACK staticProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){ - ColourStaticTextHooker *pColourStaticTextHooker = reinterpret_cast(::GetWindowLongPtr(hwnd, GWL_USERDATA)); + ColourStaticTextHooker *pColourStaticTextHooker = reinterpret_cast(::GetWindowLongPtr(hwnd, GWLP_USERDATA)); return pColourStaticTextHooker->colourStaticProc(hwnd, message, wParam, lParam); }; LRESULT CALLBACK colourStaticProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingCont.h b/PowerEditor/src/WinControls/DockingWnd/DockingCont.h index a0f28125..68f60074 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingCont.h +++ b/PowerEditor/src/WinControls/DockingWnd/DockingCont.h @@ -154,13 +154,13 @@ protected : // Subclassing caption LRESULT runProcCaption(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK wndCaptionProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((DockingCont *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProcCaption(hwnd, Message, wParam, lParam)); + return (((DockingCont *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProcCaption(hwnd, Message, wParam, lParam)); }; // Subclassing tab LRESULT runProcTab(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK wndTabProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((DockingCont *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProcTab(hwnd, Message, wParam, lParam)); + return (((DockingCont *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProcTab(hwnd, Message, wParam, lParam)); }; virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp b/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp index 88d0361e..94d85069 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp @@ -48,7 +48,7 @@ LRESULT CALLBACK FocusWndProc(int nCode, WPARAM wParam, LPARAM lParam) { if (nCode == HC_ACTION && hWndServer) { - DockingManager *pDockingManager = (DockingManager *)::GetWindowLongPtr(hWndServer, GWL_USERDATA); + DockingManager *pDockingManager = (DockingManager *)::GetWindowLongPtr(hWndServer, GWLP_USERDATA); if (pDockingManager) { vector & vcontainer = pDockingManager->getContainerInfo(); @@ -194,7 +194,7 @@ LRESULT CALLBACK DockingManager::staticWinProc(HWND hwnd, UINT message, WPARAM w return TRUE; default : - pDockingManager = (DockingManager *)::GetWindowLongPtr(hwnd, GWL_USERDATA); + pDockingManager = (DockingManager *)::GetWindowLongPtr(hwnd, GWLP_USERDATA); if (!pDockingManager) return ::DefWindowProc(hwnd, message, wParam, lParam); return pDockingManager->runProc(hwnd, message, wParam, lParam); @@ -717,7 +717,7 @@ LRESULT DockingManager::SendNotify(HWND hWnd, UINT message) nmhdr.hwndFrom = _hParent; nmhdr.idFrom = ::GetDlgCtrlID(_hParent); ::SendMessage(hWnd, WM_NOTIFY, nmhdr.idFrom, (LPARAM)&nmhdr); - return ::GetWindowLongPtr(hWnd, DWL_MSGRESULT); + return ::GetWindowLongPtr(hWnd, DWLP_MSGRESULT); } void DockingManager::setDockedContSize(int iCont, int iSize) diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp b/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp index 3d07437e..b628e009 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/DockingSplitter.cpp @@ -135,7 +135,7 @@ LRESULT CALLBACK DockingSplitter::staticWinProc(HWND hwnd, UINT message, WPARAM return TRUE; default : - pDockingSplitter = (DockingSplitter *)::GetWindowLongPtr(hwnd, GWL_USERDATA); + pDockingSplitter = (DockingSplitter *)::GetWindowLongPtr(hwnd, GWLP_USERDATA); if (!pDockingSplitter) return ::DefWindowProc(hwnd, message, wParam, lParam); return pDockingSplitter->runProc(hwnd, message, wParam, lParam); diff --git a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp index 10284fc5..22645e8f 100644 --- a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp @@ -179,7 +179,7 @@ LRESULT CALLBACK Gripper::staticWinProc(HWND hwnd, UINT message, WPARAM wParam, return TRUE; default : - pDlgMoving = (Gripper *)::GetWindowLongPtr(hwnd, GWL_USERDATA); + pDlgMoving = (Gripper *)::GetWindowLongPtr(hwnd, GWLP_USERDATA); if (!pDlgMoving) return ::DefWindowProc(hwnd, message, wParam, lParam); return pDlgMoving->runProc(message, wParam, lParam); diff --git a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp index c8108bf3..2ff3536a 100644 --- a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp +++ b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp @@ -441,8 +441,8 @@ INT_PTR CALLBACK ViewZoneDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP _viewZoneCanvas = ::GetDlgItem(_hSelf, IDC_VIEWZONECANVAS); if (NULL != _viewZoneCanvas) { - ::SetWindowLongPtrW(_viewZoneCanvas, GWL_USERDATA, reinterpret_cast(this)); - _canvasDefaultProc = reinterpret_cast(::SetWindowLongPtr(_viewZoneCanvas, GWL_WNDPROC, reinterpret_cast(canvasStaticProc))); + ::SetWindowLongPtr(_viewZoneCanvas, GWLP_USERDATA, reinterpret_cast(this)); + _canvasDefaultProc = reinterpret_cast(::SetWindowLongPtr(_viewZoneCanvas, GWLP_WNDPROC, reinterpret_cast(canvasStaticProc))); return TRUE; } break; @@ -495,7 +495,7 @@ INT_PTR CALLBACK ViewZoneDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP LRESULT CALLBACK ViewZoneDlg::canvasStaticProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { - ViewZoneDlg *pViewZoneDlg = reinterpret_cast(::GetWindowLongPtr(hwnd, GWL_USERDATA)); + ViewZoneDlg *pViewZoneDlg = reinterpret_cast(::GetWindowLongPtr(hwnd, GWLP_USERDATA)); if (!pViewZoneDlg) return FALSE; return pViewZoneDlg->canvas_runProc(hwnd, message, wParam, lParam); diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp index e95188b2..c108db86 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp @@ -573,7 +573,7 @@ INT_PTR CALLBACK FunctionListPanel::run_dlgProc(UINT message, WPARAM wParam, LPA _hToolbarMenu = CreateWindowEx(0,TOOLBARCLASSNAME,NULL, style, 0,0,0,0,_hSelf,(HMENU)0, _hInst, NULL); - //::GetWindowLongPtr(_hToolbarMenu, GWL_WNDPROC); + //::GetWindowLongPtr(_hToolbarMenu, GWLP_WNDPROC); oldFunclstToolbarProc = (WNDPROC)::SetWindowLongPtr(_hToolbarMenu, GWLP_WNDPROC, (LONG_PTR)funclstToolbarProc); TBBUTTON tbButtons[3]; diff --git a/PowerEditor/src/WinControls/FunctionList/functionParser.cpp b/PowerEditor/src/WinControls/FunctionList/functionParser.cpp index a0b80242..a015edd6 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionParser.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionParser.cpp @@ -598,14 +598,14 @@ void FunctionParser::getInvertZones(vector< pair > & destZones, vecto { if (sourceZones.size() == 0) { - destZones.push_back(pair(begin, end)); + destZones.push_back(pair((int)begin, (int)end)); } else { // check the begin if (int(begin) < sourceZones[0].first) { - destZones.push_back(pair(begin, sourceZones[0].first - 1)); + destZones.push_back(pair((int)begin, sourceZones[0].first - 1)); } size_t i = 0; @@ -618,7 +618,7 @@ void FunctionParser::getInvertZones(vector< pair > & destZones, vecto } int lastBegin = sourceZones[i].second + 1; if (lastBegin < int(end)) - destZones.push_back(pair(lastBegin, end)); + destZones.push_back(pair(lastBegin, (int)end)); } } diff --git a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp index ef833d5f..274c677c 100644 --- a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp +++ b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp @@ -1745,7 +1745,7 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) int j,k,c; TCHAR tbuffer[1000]; //it was found, get it - SendMessage(BGHS[SelfIndex].hlist1,LB_GETTEXT,FindResult,(long)lParam); + SendMessage(BGHS[SelfIndex].hlist1,LB_GETTEXT,FindResult,(LPARAM)lParam); lstrcpy(tbuffer,(TCHAR*)lParam); k=lstrlen(tbuffer); c=0; @@ -3112,7 +3112,7 @@ int BinarySearchListBox(HWND lbhWnd,TCHAR* searchtext) if(lbcount < 12) { //not worth doing binary search, do regular search - FindResult = SendMessage(lbhWnd,LB_FINDSTRING,(unsigned int)-1,(LPARAM) searchtext); + FindResult = SendMessage(lbhWnd,LB_FINDSTRING,(unsigned int)-1,(LPARAM) searchtext); ReturnValue = FindResult; return ReturnValue; } diff --git a/PowerEditor/src/WinControls/Grid/BabyGridWrapper.h b/PowerEditor/src/WinControls/Grid/BabyGridWrapper.h index 9b87a8d2..57d7270b 100644 --- a/PowerEditor/src/WinControls/Grid/BabyGridWrapper.h +++ b/PowerEditor/src/WinControls/Grid/BabyGridWrapper.h @@ -49,7 +49,7 @@ public : }; void setCursorColour(COLORREF coulour) { - ::SendMessage(_hSelf, BGM_SETCURSORCOLOR, (UINT)coulour, 0); + ::SendMessage(_hSelf, BGM_SETCURSORCOLOR, (WPARAM)coulour, 0); }; void hideCursor() { @@ -64,7 +64,7 @@ public : _BGCELL cell; cell.row = row; cell.col = col; - ::SendMessage(_hSelf, BGM_SETCELLDATA, (UINT)&cell, (long)text); + ::SendMessage(_hSelf, BGM_SETCELLDATA, (WPARAM)&cell, (LPARAM)text); }; void makeColAutoWidth(bool autoWidth = true) { @@ -79,7 +79,7 @@ public : _BGCELL cell; cell.row = row; cell.col = col; - ::SendMessage(_hSelf, BGM_DELETECELL, (UINT)&cell, 0); + ::SendMessage(_hSelf, BGM_DELETECELL, (WPARAM)&cell, 0); }; void setColWidth(unsigned int col, unsigned int width) { diff --git a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp index 5d7089d1..49ba37e5 100644 --- a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp +++ b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp @@ -368,7 +368,7 @@ UINT_PTR CALLBACK FileDialog::OFNHookProc(HWND hWnd, UINT uMsg, WPARAM wParam, L } // Don't touch the following 3 lines, they are cursed !!! - oldProc = (WNDPROC)::GetWindowLongPtr(hFileDlg, GWL_WNDPROC); + oldProc = (WNDPROC)::GetWindowLongPtr(hFileDlg, GWLP_WNDPROC); if ((long)oldProc > 0) ::SetWindowLongPtr(hFileDlg, GWLP_WNDPROC, (LONG_PTR)fileDlgProc); @@ -377,7 +377,7 @@ UINT_PTR CALLBACK FileDialog::OFNHookProc(HWND hWnd, UINT uMsg, WPARAM wParam, L default : { - FileDialog *pFileDialog = reinterpret_cast(::GetWindowLongPtr(hWnd, GWL_USERDATA)); + FileDialog *pFileDialog = reinterpret_cast(::GetWindowLongPtr(hWnd, GWLP_USERDATA)); if (!pFileDialog) { return FALSE; diff --git a/PowerEditor/src/WinControls/ProjectPanel/TreeView.h b/PowerEditor/src/WinControls/ProjectPanel/TreeView.h index d14b4b5c..58616ed1 100644 --- a/PowerEditor/src/WinControls/ProjectPanel/TreeView.h +++ b/PowerEditor/src/WinControls/ProjectPanel/TreeView.h @@ -118,7 +118,7 @@ protected: LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK staticProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((TreeView *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); + return (((TreeView *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); }; void cleanSubEntries(HTREEITEM hTreeItem); void dupTree(HTREEITEM hTree2Dup, HTREEITEM hParentItem); diff --git a/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp b/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp index 9573cea9..eae24087 100644 --- a/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp +++ b/PowerEditor/src/WinControls/SplitterContainer/Splitter.cpp @@ -251,7 +251,7 @@ LRESULT CALLBACK Splitter::staticWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP } default: { - Splitter * pSplitter = (Splitter *)::GetWindowLongPtr(hWnd, GWL_USERDATA); + Splitter * pSplitter = (Splitter *)::GetWindowLongPtr(hWnd, GWLP_USERDATA); if (!pSplitter) return ::DefWindowProc(hWnd, uMsg, wParam, lParam); diff --git a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp index c9fe2471..2d44ab9e 100644 --- a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp +++ b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp @@ -127,7 +127,7 @@ LRESULT CALLBACK SplitterContainer::staticWinProc(HWND hwnd, UINT message, WPARA return TRUE; default : - pSplitterContainer = (SplitterContainer *)::GetWindowLongPtr(hwnd, GWL_USERDATA); + pSplitterContainer = (SplitterContainer *)::GetWindowLongPtr(hwnd, GWLP_USERDATA); if (!pSplitterContainer) return ::DefWindowProc(hwnd, message, wParam, lParam); return pSplitterContainer->runProc(message, wParam, lParam); diff --git a/PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp b/PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp index 6290bccc..d76a6d4a 100644 --- a/PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp +++ b/PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp @@ -148,7 +148,7 @@ INT_PTR CALLBACK StaticDialog::dlgProc(HWND hwnd, UINT message, WPARAM wParam, L default : { - StaticDialog *pStaticDlg = reinterpret_cast(::GetWindowLongPtr(hwnd, GWL_USERDATA)); + StaticDialog *pStaticDlg = reinterpret_cast(::GetWindowLongPtr(hwnd, GWLP_USERDATA)); if (!pStaticDlg) return FALSE; return pStaticDlg->run_dlgProc(message, wParam, lParam); diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index bcb9aa20..372dbf58 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -152,7 +152,7 @@ void TabBar::activateAt(int index) const TBHDR nmhdr; nmhdr.hdr.hwndFrom = _hSelf; nmhdr.hdr.code = TCN_SELCHANGE; - nmhdr.hdr.idFrom = reinterpret_cast(this); + nmhdr.hdr.idFrom = reinterpret_cast(this); nmhdr.tabOrigin = index; } @@ -339,7 +339,7 @@ void TabBarPlus::doOwnerDrawTab() { if (_hwndArray[i]) { - DWORD style = ::GetWindowLongPtr(_hwndArray[i], GWL_STYLE); + LONG_PTR style = ::GetWindowLongPtr(_hwndArray[i], GWL_STYLE); if (isOwnerDrawTab()) style |= TCS_OWNERDRAWFIXED; else @@ -405,9 +405,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara // Custom window message to change tab control style on the fly case WM_TABSETSTYLE: { - DWORD style; - //::SendMessage(upDownWnd, UDM_SETBUDDY, NULL, 0); - style = ::GetWindowLongPtr(hwnd, GWL_STYLE); + LONG_PTR style = ::GetWindowLongPtr(hwnd, GWL_STYLE); if (wParam > 0) style |= lParam; @@ -463,7 +461,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara TBHDR nmhdr; nmhdr.hdr.hwndFrom = _hSelf; nmhdr.hdr.code = NM_CLICK; - nmhdr.hdr.idFrom = reinterpret_cast(this); + nmhdr.hdr.idFrom = reinterpret_cast(this); nmhdr.tabOrigin = currentTabOn; ::SendMessage(_hParent, WM_NOTIFY, 0, reinterpret_cast(&nmhdr)); @@ -558,7 +556,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara TBHDR nmhdr; nmhdr.hdr.hwndFrom = _hSelf; nmhdr.hdr.code = _isDraggingInside?TCN_TABDROPPED:TCN_TABDROPPEDOUTSIDE; - nmhdr.hdr.idFrom = reinterpret_cast(this); + nmhdr.hdr.idFrom = reinterpret_cast(this); nmhdr.tabOrigin = currentTabOn; ::SendMessage(_hParent, WM_NOTIFY, 0, reinterpret_cast(&nmhdr)); @@ -572,7 +570,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara TBHDR nmhdr; nmhdr.hdr.hwndFrom = _hSelf; nmhdr.hdr.code = TCN_TABDELETE; - nmhdr.hdr.idFrom = reinterpret_cast(this); + nmhdr.hdr.idFrom = reinterpret_cast(this); nmhdr.tabOrigin = currentTabOn; ::SendMessage(_hParent, WM_NOTIFY, 0, reinterpret_cast(&nmhdr)); @@ -617,7 +615,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara TBHDR nmhdr; nmhdr.hdr.hwndFrom = _hSelf; nmhdr.hdr.code = TCN_TABDELETE; - nmhdr.hdr.idFrom = reinterpret_cast(this); + nmhdr.hdr.idFrom = reinterpret_cast(this); nmhdr.tabOrigin = currentTabOn; ::SendMessage(_hParent, WM_NOTIFY, 0, reinterpret_cast(&nmhdr)); @@ -634,7 +632,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara TBHDR nmhdr; nmhdr.hdr.hwndFrom = _hSelf; nmhdr.hdr.code = TCN_TABDELETE; - nmhdr.hdr.idFrom = reinterpret_cast(this); + nmhdr.hdr.idFrom = reinterpret_cast(this); nmhdr.tabOrigin = currentTabOn; ::SendMessage(_hParent, WM_NOTIFY, 0, reinterpret_cast(&nmhdr)); diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.h b/PowerEditor/src/WinControls/TabBar/TabBar.h index e3a5d529..68c1f562 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.h +++ b/PowerEditor/src/WinControls/TabBar/TabBar.h @@ -245,7 +245,7 @@ protected: LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK TabBarPlus_Proc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((TabBarPlus *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); + return (((TabBarPlus *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); }; void exchangeItemData(POINT point); diff --git a/PowerEditor/src/WinControls/TaskList/TaskList.h b/PowerEditor/src/WinControls/TaskList/TaskList.h index b2a64142..8598a4e6 100644 --- a/PowerEditor/src/WinControls/TaskList/TaskList.h +++ b/PowerEditor/src/WinControls/TaskList/TaskList.h @@ -67,7 +67,7 @@ protected: LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK staticProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((TaskList *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); + return (((TaskList *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); }; HFONT _hFont; diff --git a/PowerEditor/src/WinControls/ToolTip/ToolTip.h b/PowerEditor/src/WinControls/ToolTip/ToolTip.h index 8310c57d..b6e23956 100644 --- a/PowerEditor/src/WinControls/ToolTip/ToolTip.h +++ b/PowerEditor/src/WinControls/ToolTip/ToolTip.h @@ -57,7 +57,7 @@ protected: TOOLINFO _ti; static LRESULT CALLBACK staticWinProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((ToolTip *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(Message, wParam, lParam)); + return (((ToolTip *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(Message, wParam, lParam)); }; LRESULT runProc(UINT Message, WPARAM wParam, LPARAM lParam); void SendHitMessage(); diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.cpp b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.cpp index c86cfd0b..5af14587 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.cpp +++ b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.cpp @@ -205,15 +205,15 @@ INT_PTR CALLBACK VerticalFileSwitcher::run_dlgProc(UINT message, WPARAM wParam, void VerticalFileSwitcher::activateDoc(TaskLstFnStatus *tlfs) const { int view = tlfs->_iView; - int bufferID = (int)tlfs->_bufID; + BufferID bufferID = static_cast(tlfs->_bufID); int currentView = ::SendMessage(_hParent, NPPM_GETCURRENTVIEW, 0, 0); - int currentBufID = ::SendMessage(_hParent, NPPM_GETCURRENTBUFFERID, 0, 0); + BufferID currentBufID = reinterpret_cast(::SendMessage(_hParent, NPPM_GETCURRENTBUFFERID, 0, 0)); if (bufferID == currentBufID && view == currentView) return; - int docPosInfo = ::SendMessage(_hParent, NPPM_GETPOSFROMBUFFERID, bufferID, view); + int docPosInfo = ::SendMessage(_hParent, NPPM_GETPOSFROMBUFFERID, (WPARAM)bufferID, view); int view2set = docPosInfo >> 30; int index2Switch = (docPosInfo << 2) >> 2 ; diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h index e16d85ed..e9c38ed7 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h +++ b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h @@ -55,19 +55,19 @@ public: //Activate document in scintilla by using the internal index void activateDoc(TaskLstFnStatus *tlfs) const; - int newItem(int bufferID, int iView){ + int newItem(BufferID bufferID, int iView){ return _fileListView.newItem(bufferID, iView); }; - int closeItem(int bufferID, int iView){ + int closeItem(BufferID bufferID, int iView){ return _fileListView.closeItem(bufferID, iView); }; - void activateItem(int bufferID, int iView) { + void activateItem(BufferID bufferID, int iView) { _fileListView.activateItem(bufferID, iView); }; - void setItemIconStatus(int bufferID) { + void setItemIconStatus(BufferID bufferID) { _fileListView.setItemIconStatus(bufferID) ; }; diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp index 304b65cc..1f8dbec2 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp +++ b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp @@ -157,11 +157,11 @@ void VerticalFileSwitcherListView::reload() initList(); } -int VerticalFileSwitcherListView::getBufferInfoFromIndex(int index, int & view) const +BufferID VerticalFileSwitcherListView::getBufferInfoFromIndex(int index, int & view) const { int nbItem = ListView_GetItemCount(_hSelf); if (index < 0 || index >= nbItem) - return -1; + return BUFFER_INVALID; LVITEM item; item.mask = LVIF_PARAM; @@ -170,10 +170,10 @@ int VerticalFileSwitcherListView::getBufferInfoFromIndex(int index, int & view) TaskLstFnStatus *tlfs = (TaskLstFnStatus *)item.lParam; view = tlfs->_iView; - return int(tlfs->_bufID); + return static_cast(tlfs->_bufID); } -int VerticalFileSwitcherListView::newItem(int bufferID, int iView) +int VerticalFileSwitcherListView::newItem(BufferID bufferID, int iView) { int i = find(bufferID, iView); if (i == -1) @@ -183,7 +183,7 @@ int VerticalFileSwitcherListView::newItem(int bufferID, int iView) return i; } -void VerticalFileSwitcherListView::setItemIconStatus(int bufferID) +void VerticalFileSwitcherListView::setItemIconStatus(BufferID bufferID) { Buffer *buf = (Buffer *)bufferID; @@ -207,7 +207,7 @@ void VerticalFileSwitcherListView::setItemIconStatus(int bufferID) item.iItem = i; ListView_GetItem(_hSelf, &item); TaskLstFnStatus *tlfs = (TaskLstFnStatus *)(item.lParam); - if (int(tlfs->_bufID) == bufferID) + if (tlfs->_bufID == bufferID) { item.mask = LVIF_TEXT | LVIF_IMAGE; ListView_SetItem(_hSelf, &item); @@ -236,7 +236,7 @@ generic_string VerticalFileSwitcherListView::getFullFilePath(size_t i) const return tlfs->_fn; } -int VerticalFileSwitcherListView::closeItem(int bufferID, int iView) +int VerticalFileSwitcherListView::closeItem(BufferID bufferID, int iView) { int i = find(bufferID, iView); if (i != -1) @@ -244,7 +244,7 @@ int VerticalFileSwitcherListView::closeItem(int bufferID, int iView) return i; } -void VerticalFileSwitcherListView::activateItem(int bufferID, int iView) +void VerticalFileSwitcherListView::activateItem(BufferID bufferID, int iView) { // Clean all selection int nbItem = ListView_GetItemCount(_hSelf); @@ -255,7 +255,7 @@ void VerticalFileSwitcherListView::activateItem(int bufferID, int iView) ListView_SetItemState(_hSelf, i, LVIS_FOCUSED|LVIS_SELECTED, LVIS_FOCUSED|LVIS_SELECTED); } -int VerticalFileSwitcherListView::add(int bufferID, int iView) +int VerticalFileSwitcherListView::add(BufferID bufferID, int iView) { int index = ListView_GetItemCount(_hSelf); Buffer *buf = (Buffer *)bufferID; @@ -311,7 +311,7 @@ void VerticalFileSwitcherListView::removeAll() } } -int VerticalFileSwitcherListView::find(int bufferID, int iView) const +int VerticalFileSwitcherListView::find(BufferID bufferID, int iView) const { LVITEM item; bool found = false; @@ -323,7 +323,7 @@ int VerticalFileSwitcherListView::find(int bufferID, int iView) const item.iItem = i; ListView_GetItem(_hSelf, &item); TaskLstFnStatus *tlfs = (TaskLstFnStatus *)item.lParam; - if (int(tlfs->_bufID) == bufferID && tlfs->_iView == iView) + if (tlfs->_bufID == bufferID && tlfs->_iView == iView) { found = true; break; @@ -374,7 +374,7 @@ std::vector VerticalFileSwitcherListView::getSelectedFiles(boo ListView_GetItem(_hSelf, &item); TaskLstFnStatus *tlfs = (TaskLstFnStatus *)item.lParam; - files.push_back(SwitcherFileInfo(int(tlfs->_bufID), tlfs->_iView)); + files.push_back(SwitcherFileInfo(static_cast(tlfs->_bufID), tlfs->_iView)); } } diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h index 35b383bb..6877feec 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h +++ b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h @@ -32,13 +32,16 @@ #include "window.h" #include "TaskListDlg.h" +class Buffer; +typedef Buffer * BufferID; //each buffer has unique ID by which it can be retrieved + #define SORT_DIRECTION_UP 0 #define SORT_DIRECTION_DOWN 1 struct SwitcherFileInfo { - int _bufID; + BufferID _bufID; int _iView; - SwitcherFileInfo(int buf, int view): _bufID(buf), _iView(view){}; + SwitcherFileInfo(BufferID buf, int view) : _bufID(buf), _iView(view){}; }; class VerticalFileSwitcherListView : public Window @@ -50,14 +53,14 @@ public: virtual void init(HINSTANCE hInst, HWND parent, HIMAGELIST hImaLst); virtual void destroy(); void initList(); - int getBufferInfoFromIndex(int index, int & view) const; + BufferID getBufferInfoFromIndex(int index, int & view) const; void setBgColour(int i) { ListView_SetItemState(_hSelf, i, LVIS_SELECTED|LVIS_FOCUSED, 0xFF); } - int newItem(int bufferID, int iView); - int closeItem(int bufferID, int iView); - void activateItem(int bufferID, int iView); - void setItemIconStatus(int bufferID); + int newItem(BufferID bufferID, int iView); + int closeItem(BufferID bufferID, int iView); + void activateItem(BufferID bufferID, int iView); + void setItemIconStatus(BufferID bufferID); generic_string getFullFilePath(size_t i) const; void insertColumn(const TCHAR *name, int width, int index); @@ -89,11 +92,11 @@ protected: LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK staticProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { - return (((VerticalFileSwitcherListView *)(::GetWindowLongPtr(hwnd, GWL_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); + return (((VerticalFileSwitcherListView *)(::GetWindowLongPtr(hwnd, GWLP_USERDATA)))->runProc(hwnd, Message, wParam, lParam)); }; - int find(int bufferID, int iView) const; - int add(int bufferID, int iView); + int find(BufferID bufferID, int iView) const; + int add(BufferID bufferID, int iView); void remove(int index); void removeAll(); }; diff --git a/PowerEditor/src/notepad++.exe.manifest b/PowerEditor/src/notepad++.exe.manifest index c80f5855..3e09e9da 100644 --- a/PowerEditor/src/notepad++.exe.manifest +++ b/PowerEditor/src/notepad++.exe.manifest @@ -3,7 +3,7 @@ manifestVersion="1.0"> @@ -14,7 +14,7 @@ type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" - processorArchitecture="X86" + processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" /> diff --git a/PowerEditor/visual.net/notepadPlus.vcxproj b/PowerEditor/visual.net/notepadPlus.vcxproj index 1636afc7..9482577c 100644 --- a/PowerEditor/visual.net/notepadPlus.vcxproj +++ b/PowerEditor/visual.net/notepadPlus.vcxproj @@ -5,10 +5,18 @@ Unicode Debug Win32 + + Unicode Debug + x64 + Unicode Release Win32 + + Unicode Release + x64 + Notepad++ @@ -23,11 +31,22 @@ Unicode true + + Application + v120_xp + Unicode + true + Application v120_xp Unicode + + Application + v120_xp + Unicode + @@ -35,10 +54,18 @@ + + + + + + + + <_ProjectFileVersion>12.0.21005.1 @@ -48,11 +75,17 @@ $(Configuration)\ false + + false + ..\bin\ $(Configuration)\ false + + false + Disabled @@ -87,6 +120,40 @@ + + + Disabled + Neither + ..\src\WinControls\AboutDlg;..\..\scintilla\include;..\include;..\src\WinControls;..\src\WinControls\ImageListSet;..\src\WinControls\OpenSaveFileDialog;..\src\WinControls\SplitterContainer;..\src\WinControls\StaticDialog;..\src\WinControls\TabBar;..\src\WinControls\ToolBar;..\src\MISC\Process;..\src\ScitillaComponent;..\src\MISC;..\src\MISC\SysMsg;..\src\WinControls\StatusBar;..\src;..\src\WinControls\StaticDialog\RunDlg;..\src\tinyxml;..\src\WinControls\ColourPicker;..\src\Win32Explr;..\src\MISC\RegExt;..\src\WinControls\TrayIcon;..\src\WinControls\shortcut;..\src\WinControls\Grid;..\src\WinControls\ContextMenu;..\src\MISC\PluginsManager;..\src\WinControls\Preference;..\src\WinControls\WindowsDlg;..\src\WinControls\TaskList;..\src\WinControls\DockingWnd;..\src\WinControls\ToolTip;..\src\MISC\Exception;..\src\MISC\Common;..\src\tinyxml\tinyXmlA;..\src\WinControls\AnsiCharPanel;..\src\WinControls\ClipboardHistory;..\src\WinControls\FindCharsInRange;..\src\WinControls\VerticalFileSwitcher;..\src\WinControls\ProjectPanel;..\src\WinControls\DocumentMap;..\src\WinControls\FunctionList;..\src\uchardet;%(AdditionalIncludeDirectories) + WIN32;_WIN32_WINNT=0x0501;_WINDOWS;_USE_64BIT_TIME_T;TIXML_USE_STL;TIXMLA_USE_STL;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS=1;%(PreprocessorDefinitions) + Async + Default + MultiThreadedDebug + Level4 + false + ProgramDatabase + true + + + /fixed:no %(AdditionalOptions) + comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;%(AdditionalDependencies) + LinkVerboseLib + $(OutDir)notepad++.exe + 1.0 + /TLBID + 5 + true + $(OutDir)notepadPlus.pdb + Windows + + + ..\src\dpiAware.manifest;%(AdditionalManifestFiles) + + + + + + Full @@ -134,6 +201,56 @@ copy ..\src\shortcuts.xml ..\bin\shortcuts.xml copy ..\src\functionList.xml ..\bin\functionList.xml copy ..\src\contextMenu.xml ..\bin\contextMenu.xml ..\misc\vistaIconTool\changeIcon.bat "..\misc\vistaIconTool\ChangeIcon.exe" "$(OutDir)notepad++.exe" + + + + + + Full + Default + Speed + false + false + ..\src\WinControls\AboutDlg;..\..\scintilla\include;..\include;..\src\WinControls;..\src\WinControls\ImageListSet;..\src\WinControls\OpenSaveFileDialog;..\src\WinControls\SplitterContainer;..\src\WinControls\StaticDialog;..\src\WinControls\TabBar;..\src\WinControls\ToolBar;..\src\MISC\Process;..\src\ScitillaComponent;..\src\MISC;..\src\MISC\SysMsg;..\src\WinControls\StatusBar;..\src;..\src\WinControls\StaticDialog\RunDlg;..\src\tinyxml;..\src\WinControls\ColourPicker;..\src\Win32Explr;..\src\MISC\RegExt;..\src\WinControls\TrayIcon;..\src\WinControls\shortcut;..\src\WinControls\Grid;..\src\WinControls\ContextMenu;..\src\MISC\PluginsManager;..\src\WinControls\Preference;..\src\WinControls\WindowsDlg;..\src\WinControls\TaskList;..\src\WinControls\DockingWnd;..\src\WinControls\ToolTip;..\src\MISC\Exception;..\src\MISC\Common;..\src\tinyxml\tinyXmlA;..\src\WinControls\AnsiCharPanel;..\src\WinControls\ClipboardHistory;..\src\WinControls\FindCharsInRange;..\src\WinControls\VerticalFileSwitcher;..\src\WinControls\ProjectPanel;..\src\WinControls\DocumentMap;..\src\WinControls\FunctionList;..\src\uchardet;%(AdditionalIncludeDirectories) + WIN32;_WIN32_WINNT=0x0501;NDEBUG;_WINDOWS;_USE_64BIT_TIME_T;TIXML_USE_STL;TIXMLA_USE_STL;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS=1;%(PreprocessorDefinitions) + false + false + true + Async + MultiThreaded + true + Level4 + false + ProgramDatabase + NoExtensions + true + + + comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;%(AdditionalDependencies) + LinkVerboseLib + $(OutDir)notepad++.exe + 1.0 + + + 1 + true + $(OutDir)npp.pdb + Windows + true + true + UseLinkTimeCodeGeneration + + + ..\src\dpiAware.manifest;%(AdditionalManifestFiles) + + + copy ..\src\config.model.xml ..\bin\config.model.xml +copy ..\src\langs.model.xml ..\bin\langs.model.xml +copy ..\src\stylers.model.xml ..\bin\stylers.model.xml +copy ..\src\shortcuts.xml ..\bin\shortcuts.xml +copy ..\src\functionList.xml ..\bin\functionList.xml +copy ..\src\contextMenu.xml ..\bin\contextMenu.xml +..\misc\vistaIconTool\changeIcon.bat "..\misc\vistaIconTool\ChangeIcon.exe" "$(OutDir)notepad++.exe" @@ -225,10 +342,16 @@ copy ..\src\contextMenu.xml ..\bin\contextMenu.xml + + TurnOffAllWarnings + TurnOffAllWarnings + + TurnOffAllWarnings + TurnOffAllWarnings diff --git a/scintilla/boostregex/BoostRegExSearch.cxx b/scintilla/boostregex/BoostRegExSearch.cxx index 19a41e7d..b2cf275e 100644 --- a/scintilla/boostregex/BoostRegExSearch.cxx +++ b/scintilla/boostregex/BoostRegExSearch.cxx @@ -241,10 +241,12 @@ namespace Scintilla { #endif +#ifdef SCI_OWNREGEX RegexSearchBase *CreateRegexSearch(CharClassify* /* charClassTable */) { return new BoostRegexSearch(); } +#endif #ifdef SCI_NAMESPACE } @@ -444,14 +446,14 @@ const char *BoostRegexSearch::SubstituteByPosition(Document* doc, const char *te template char *BoostRegexSearch::EncodingDependent::SubstituteByPosition(const char *text, int *length) { char *substituted = stringToCharPtr(_match.format((const CharT*)CharTPtr(text), boost::format_all)); - *length = strlen(substituted); + *length = static_cast(strlen(substituted)); return substituted; } wchar_t *BoostRegexSearch::utf8ToWchar(const char *utf8) { - int utf8Size = strlen(utf8); - int wcharSize = UTF16Length(utf8, utf8Size); + size_t utf8Size = strlen(utf8); + size_t wcharSize = UTF16Length(utf8, utf8Size); wchar_t *w = new wchar_t[wcharSize + 1]; UTF16FromUTF8(utf8, utf8Size, w, wcharSize + 1); w[wcharSize] = 0; @@ -460,7 +462,7 @@ wchar_t *BoostRegexSearch::utf8ToWchar(const char *utf8) char *BoostRegexSearch::wcharToUtf8(const wchar_t *w) { - int wcharSize = wcslen(w); + int wcharSize = static_cast(wcslen(w)); int charSize = UTF8Length(w, wcharSize); char *c = new char[charSize + 1]; UTF8FromUTF16(w, wcharSize, c, charSize); diff --git a/scintilla/lexers/LexSearchResult.cxx b/scintilla/lexers/LexSearchResult.cxx index 6742f626..db4dca70 100644 --- a/scintilla/lexers/LexSearchResult.cxx +++ b/scintilla/lexers/LexSearchResult.cxx @@ -96,7 +96,7 @@ static void ColouriseSearchResultLine(SearchResultMarkings* pMarkings, char *lin } } -static void ColouriseSearchResultDoc(unsigned int startPos, int length, int, WordList *keywordlists[], Accessor &styler) { +static void ColouriseSearchResultDoc(unsigned int startPos, int length, int, WordList *[], Accessor &styler) { char lineBuffer[SC_SEARCHRESULT_LINEBUFFERMAXLENGTH]; styler.StartAt(startPos); diff --git a/scintilla/lexers/LexUser.cxx b/scintilla/lexers/LexUser.cxx index 62414dfc..491e6310 100644 --- a/scintilla/lexers/LexUser.cxx +++ b/scintilla/lexers/LexUser.cxx @@ -635,13 +635,13 @@ static inline void SubGroup(const char * s, vvstring & vec, bool group=false) for (unsigned int j=0; j= 2 && s[0] == '(' && s[1] == '(') { i = 2; group = true; } - if (s[length-1] == ')' && s[length-2] == ')') + if (length >= 2 && s[length - 1] == ')' && s[length - 2] == ')') length -= 2; if (!group && *s) @@ -1403,36 +1403,36 @@ static void ColouriseUserDoc(unsigned int startPos, int length, int initStyle, W const char * sComments = styler.pprops->Get("userDefine.comments"); // 'GenerateVector' converts strings into vvstring objects - GenerateVector(commentLineOpen, sComments, TEXT("00"), 0); - GenerateVector(commentLineContinue, sComments, TEXT("01"), commentLineOpen.size()); - GenerateVector(commentLineClose, sComments, TEXT("02"), commentLineOpen.size()); - GenerateVector(commentOpen, sComments, TEXT("03"), 0); - GenerateVector(commentClose, sComments, TEXT("04"), commentOpen.size()); + GenerateVector(commentLineOpen, sComments, "00", 0); + GenerateVector(commentLineContinue, sComments, "01", commentLineOpen.size()); + GenerateVector(commentLineClose, sComments, "02", commentLineOpen.size()); + GenerateVector(commentOpen, sComments, "03", 0); + GenerateVector(commentClose, sComments, "04", commentOpen.size()); - GenerateVector(delim1Open, sDelimiters, TEXT("00"), 0); - GenerateVector(delim1Escape, sDelimiters, TEXT("01"), delim1Open.size()); - GenerateVector(delim1Close, sDelimiters, TEXT("02"), delim1Open.size()); - GenerateVector(delim2Open, sDelimiters, TEXT("03"), 0); - GenerateVector(delim2Escape, sDelimiters, TEXT("04"), delim2Open.size()); - GenerateVector(delim2Close, sDelimiters, TEXT("05"), delim2Open.size()); - GenerateVector(delim3Open, sDelimiters, TEXT("06"), 0); - GenerateVector(delim3Escape, sDelimiters, TEXT("07"), delim3Open.size()); - GenerateVector(delim3Close, sDelimiters, TEXT("08"), delim3Open.size()); - GenerateVector(delim4Open, sDelimiters, TEXT("09"), 0); - GenerateVector(delim4Escape, sDelimiters, TEXT("10"), delim4Open.size()); - GenerateVector(delim4Close, sDelimiters, TEXT("11"), delim4Open.size()); - GenerateVector(delim5Open, sDelimiters, TEXT("12"), 0); - GenerateVector(delim5Escape, sDelimiters, TEXT("13"), delim5Open.size()); - GenerateVector(delim5Close, sDelimiters, TEXT("14"), delim5Open.size()); - GenerateVector(delim6Open, sDelimiters, TEXT("15"), 0); - GenerateVector(delim6Escape, sDelimiters, TEXT("16"), delim6Open.size()); - GenerateVector(delim6Close, sDelimiters, TEXT("17"), delim6Open.size()); - GenerateVector(delim7Open, sDelimiters, TEXT("18"), 0); - GenerateVector(delim7Escape, sDelimiters, TEXT("19"), delim7Open.size()); - GenerateVector(delim7Close, sDelimiters, TEXT("20"), delim7Open.size()); - GenerateVector(delim8Open, sDelimiters, TEXT("21"), 0); - GenerateVector(delim8Escape, sDelimiters, TEXT("22"), delim8Open.size()); - GenerateVector(delim8Close, sDelimiters, TEXT("23"), delim8Open.size()); + GenerateVector(delim1Open, sDelimiters, "00", 0); + GenerateVector(delim1Escape, sDelimiters, "01", delim1Open.size()); + GenerateVector(delim1Close, sDelimiters, "02", delim1Open.size()); + GenerateVector(delim2Open, sDelimiters, "03", 0); + GenerateVector(delim2Escape, sDelimiters, "04", delim2Open.size()); + GenerateVector(delim2Close, sDelimiters, "05", delim2Open.size()); + GenerateVector(delim3Open, sDelimiters, "06", 0); + GenerateVector(delim3Escape, sDelimiters, "07", delim3Open.size()); + GenerateVector(delim3Close, sDelimiters, "08", delim3Open.size()); + GenerateVector(delim4Open, sDelimiters, "09", 0); + GenerateVector(delim4Escape, sDelimiters, "10", delim4Open.size()); + GenerateVector(delim4Close, sDelimiters, "11", delim4Open.size()); + GenerateVector(delim5Open, sDelimiters, "12", 0); + GenerateVector(delim5Escape, sDelimiters, "13", delim5Open.size()); + GenerateVector(delim5Close, sDelimiters, "14", delim5Open.size()); + GenerateVector(delim6Open, sDelimiters, "15", 0); + GenerateVector(delim6Escape, sDelimiters, "16", delim6Open.size()); + GenerateVector(delim6Close, sDelimiters, "17", delim6Open.size()); + GenerateVector(delim7Open, sDelimiters, "18", 0); + GenerateVector(delim7Escape, sDelimiters, "19", delim7Open.size()); + GenerateVector(delim7Close, sDelimiters, "20", delim7Open.size()); + GenerateVector(delim8Open, sDelimiters, "21", 0); + GenerateVector(delim8Escape, sDelimiters, "22", delim8Open.size()); + GenerateVector(delim8Close, sDelimiters, "23", delim8Open.size()); operators1.clear(); foldersInCode1Open.clear(); diff --git a/scintilla/win32/SciLexer.vcxproj b/scintilla/win32/SciLexer.vcxproj index a151c02d..f7f70579 100644 --- a/scintilla/win32/SciLexer.vcxproj +++ b/scintilla/win32/SciLexer.vcxproj @@ -1,20 +1,20 @@  - + - - Debug + + Unicode Debug Win32 - - Debug + + Unicode Debug x64 - - Release + + Unicode Release Win32 - - Release + + Unicode Release x64 @@ -27,19 +27,19 @@ DynamicLibrary Unicode - v120 + v120_xp - + true - + true - + false true - + false true @@ -52,11 +52,12 @@ false + ba6a8a13 Level4 - WIN32;SCI_LEXER;_CRT_SECURE_NO_DEPRECATE;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + WIN32;SCI_LEXER;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;_CRT_SECURE_NO_DEPRECATE;_WINDOWS;_USRDLL;SCI_OWNREGEX;%(PreprocessorDefinitions) ..\include;..\src;..\lexlib; true true @@ -69,7 +70,7 @@ imm32.lib;%(AdditionalDependencies) - + _DEBUG;%(PreprocessorDefinitions) @@ -77,7 +78,7 @@ Default - + _DEBUG;%(PreprocessorDefinitions) @@ -85,7 +86,7 @@ Default - + true true @@ -96,7 +97,7 @@ true - + true true @@ -114,17 +115,31 @@ + + + + + + + - + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/scintilla/win32/packages.config b/scintilla/win32/packages.config new file mode 100644 index 00000000..ec2adc26 --- /dev/null +++ b/scintilla/win32/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file