diff --git a/PowerEditor/src/MISC/Common/Common.cpp b/PowerEditor/src/MISC/Common/Common.cpp index df3dd308a..b7e8f3aa9 100644 --- a/PowerEditor/src/MISC/Common/Common.cpp +++ b/PowerEditor/src/MISC/Common/Common.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include "StaticDialog.h" diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index f8c1b1fcd..9e9f28dd2 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -669,6 +669,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara if (_isDragging) { exchangeItemData(p); + ::CallWindowProc(_tabBarDefaultProc, hwnd, WM_LBUTTONDOWN, wParam, lParam); // Get cursor position of "Screen" // For using the function "WindowFromPoint" afterward!!! @@ -1187,9 +1188,6 @@ void TabBarPlus::exchangeTabItemData(int oldTab, int newTab) // Tell Notepad_plus to notifiy plugins that a D&D operation was done (so doc index has been changed) ::SendMessage(_hParent, NPPM_INTERNAL_DOCORDERCHANGED, 0, oldTab); - - //2. set to focus - setActiveTab(newTab); } void TabBarPlus::exchangeItemData(POINT point)