Commit 22b7fedf authored by Alexandre Julliard's avatar Alexandre Julliard

shell32: Fix incorrect use of the ScreenToClient function.

parent 1019c2fe
...@@ -94,15 +94,13 @@ static void confirm_msg_move_button(HWND hDlg, INT iId, INT *xPos, INT yOffset, ...@@ -94,15 +94,13 @@ static void confirm_msg_move_button(HWND hDlg, INT iId, INT *xPos, INT yOffset,
RECT r; RECT r;
if (bShow) { if (bShow) {
POINT pt;
int width; int width;
GetWindowRect(hButton, &r); GetWindowRect(hButton, &r);
MapWindowPoints( 0, hDlg, (POINT *)&r, 2 );
width = r.right - r.left; width = r.right - r.left;
pt.x = r.left; SetWindowPos(hButton, 0, *xPos - width, r.top - yOffset, 0, 0,
pt.y = r.top; SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW );
ScreenToClient(hDlg, &pt);
MoveWindow(hButton, *xPos - width, pt.y - yOffset, width, r.bottom - r.top, FALSE);
*xPos -= width + 5; *xPos -= width + 5;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment