diff --git a/PowerEditor/src/MISC/Common/Common.cpp b/PowerEditor/src/MISC/Common/Common.cpp index 851e0948..30b6b987 100644 --- a/PowerEditor/src/MISC/Common/Common.cpp +++ b/PowerEditor/src/MISC/Common/Common.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include "StaticDialog.h" diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index 93230ff0..98c00fdb 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -669,7 +669,6 @@ 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!!! @@ -1188,6 +1187,9 @@ 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)