shell32: Fix incorrect use of the ScreenToClient function.

This commit is contained in:
Alexandre Julliard 2010-10-05 14:02:35 +02:00
parent 1019c2fe5d
commit 22b7fedff5
1 changed files with 3 additions and 5 deletions

View File

@ -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