From e82a451ec1e188f29e689f444ed346f0efc9b2d1 Mon Sep 17 00:00:00 2001 From: Ashfaaq18 Date: Mon, 11 Oct 2021 00:46:50 +0530 Subject: [PATCH] Fix docking problem for dockable panel in RTL mode Fix #10641, close #10645 --- PowerEditor/src/WinControls/DockingWnd/Gripper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp index 47518efc9..d41c47310 100644 --- a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp @@ -792,13 +792,13 @@ DockingCont* Gripper::workHitTest(POINT pt, RECT *rc) default: break; } - ClientRectToScreenRect(_dockData.hWnd, &rcCont); + ::MapWindowPoints(_dockData.hWnd, NULL, (LPPOINT)(&rcCont), 2); if (::PtInRect(&rcCont, pt) == TRUE) { if (rc != NULL) { - ClientRectToScreenRect(_dockData.hWnd, rc); + ::MapWindowPoints(_dockData.hWnd, NULL, (LPPOINT)(rc), 2); rc->right -= rc->left; rc->bottom -= rc->top; }