mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
comctl32/pager: Fix incorrect use of the ScreenToClient function.
This commit is contained in:
parent
a10441d67a
commit
5434d069ea
1 changed files with 1 additions and 5 deletions
|
@ -99,11 +99,7 @@ PAGER_GetButtonRects(const PAGER_INFO* infoPtr, RECT* prcTopLeft, RECT* prcBotto
|
|||
GetWindowRect (infoPtr->hwndSelf, &rcWindow);
|
||||
|
||||
if (bClientCoords)
|
||||
{
|
||||
POINT pt = {rcWindow.left, rcWindow.top};
|
||||
ScreenToClient(infoPtr->hwndSelf, &pt);
|
||||
OffsetRect(&rcWindow, -(rcWindow.left-pt.x), -(rcWindow.top-pt.y));
|
||||
}
|
||||
MapWindowPoints( 0, infoPtr->hwndSelf, (POINT *)&rcWindow, 2 );
|
||||
else
|
||||
OffsetRect(&rcWindow, -rcWindow.left, -rcWindow.top);
|
||||
|
||||
|
|
Loading…
Reference in a new issue