Commit 6d5bfce3 authored by Alexandre Julliard's avatar Alexandre Julliard

comdlg32: Fix incorrect use of the ScreenToClient function.

parent d8950a7e
...@@ -3487,8 +3487,7 @@ static INT_PTR CALLBACK pagesetup_dlg_proc(HWND hDlg, UINT uMsg, WPARAM wParam, ...@@ -3487,8 +3487,7 @@ static INT_PTR CALLBACK pagesetup_dlg_proc(HWND hDlg, UINT uMsg, WPARAM wParam,
SetPropW(hDlg, pagesetupdlg_prop, data); SetPropW(hDlg, pagesetupdlg_prop, data);
SetPropW(hDrawWnd, pagesetupdlg_prop, data); SetPropW(hDrawWnd, pagesetupdlg_prop, data);
GetWindowRect(hDrawWnd, &data->rtDrawRect); /* Calculating rect in client coordinates where paper draws */ GetWindowRect(hDrawWnd, &data->rtDrawRect); /* Calculating rect in client coordinates where paper draws */
ScreenToClient(hDlg, (LPPOINT)&data->rtDrawRect); MapWindowPoints( 0, hDlg, (LPPOINT)&data->rtDrawRect, 2 );
ScreenToClient(hDlg, (LPPOINT)(&data->rtDrawRect.right));
lpfnStaticWndProc = (WNDPROC)SetWindowLongPtrW( lpfnStaticWndProc = (WNDPROC)SetWindowLongPtrW(
hDrawWnd, hDrawWnd,
GWLP_WNDPROC, GWLP_WNDPROC,
......
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