Fix docking problem for dockable panel in RTL mode

Fix #10641, close #10645
pull/10686/head
Ashfaaq18 3 years ago committed by Don Ho
parent 324a7ab8cc
commit e82a451ec1

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

Loading…
Cancel
Save