Module: wine Branch: master Commit: 22b7fedff59684e6fc8e366a19e24fa12e875a0a URL: http://source.winehq.org/git/wine.git/?a=commit;h=22b7fedff59684e6fc8e366a19...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Oct 5 14:02:35 2010 +0200
shell32: Fix incorrect use of the ScreenToClient function.
---
dlls/shell32/shlfileop.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c index 702a6c0..f022faf 100644 --- a/dlls/shell32/shlfileop.c +++ b/dlls/shell32/shlfileop.c @@ -94,15 +94,13 @@ static void confirm_msg_move_button(HWND hDlg, INT iId, INT *xPos, INT yOffset, RECT r;
if (bShow) { - POINT pt; int width;
GetWindowRect(hButton, &r); + MapWindowPoints( 0, hDlg, (POINT *)&r, 2 ); width = r.right - r.left; - pt.x = r.left; - pt.y = r.top; - ScreenToClient(hDlg, &pt); - MoveWindow(hButton, *xPos - width, pt.y - yOffset, width, r.bottom - r.top, FALSE); + SetWindowPos(hButton, 0, *xPos - width, r.top - yOffset, 0, 0, + SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW ); *xPos -= width + 5; } else