Module: wine Branch: master Commit: 5434d069ea7d12c9cdc317e81c9f32a205b3e981 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5434d069ea7d12c9cdc317e81c...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Oct 5 14:03:48 2010 +0200
comctl32/pager: Fix incorrect use of the ScreenToClient function.
---
dlls/comctl32/pager.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/dlls/comctl32/pager.c b/dlls/comctl32/pager.c index f3461fd..e1420e0 100644 --- a/dlls/comctl32/pager.c +++ b/dlls/comctl32/pager.c @@ -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);