diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index fe0a51591..d91e2b4de 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -309,10 +309,11 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara if (_doDragNDrop) { _nSrcTab = _nTabDragged = currentTabOn; - + POINT point; point.x = LOWORD(lParam); point.y = HIWORD(lParam); + ::ClientToScreen(hwnd, &point); if(::DragDetect(hwnd, point)) { // Yes, we're beginning to drag, so capture the mouse...