Fixed WM_COMMAND notification codes for 16 bit PrintDlg.

This commit is contained in:
Marcus Meissner 2001-05-05 00:45:45 +00:00 committed by Alexandre Julliard
parent 09d7822048
commit acb08a3972
1 changed files with 11 additions and 3 deletions

View File

@ -2073,9 +2073,17 @@ LRESULT WINAPI PrintDlgProc16(HWND16 hDlg, UINT16 uMsg, WPARAM16 wParam,
}
switch (uMsg) {
case WM_COMMAND:
return PRINTDLG_WMCommand(hDlg, wParam, lParam, PrintStructures);
case WM_COMMAND: {
/* We need to map those for the 32bit window procedure, compare
* with 32Ato16 mapper in winproc.c
*/
return PRINTDLG_WMCommand(
hDlg,
MAKEWPARAM(wParam,HIWORD(lParam)),
LOWORD(lParam),
PrintStructures
);
}
case WM_DESTROY:
DestroyIcon(PrintStructures->hCollateIcon);
DestroyIcon(PrintStructures->hNoCollateIcon);