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,
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
......
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