Fix docking problem for dockable panel in RTL mode

Fix #10641, close #10645
pull/10686/head
Ashfaaq18 2021-10-11 00:46:50 +05:30 committed by Don Ho
parent 324a7ab8cc
commit e82a451ec1
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}