Swap portrait/landscape icon when button clicked.

This commit is contained in:
Duane Clark 2001-05-07 20:14:57 +00:00 committed by Alexandre Julliard
parent d69c774d55
commit abecb13435
1 changed files with 8 additions and 0 deletions

View File

@ -1025,12 +1025,20 @@ static LRESULT PRINTDLG_WMCommand(HWND hDlg, WPARAM wParam,
case rad1: /* Paperorientation */
if (lppd->Flags & PD_PRINTSETUP)
{
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
(LPARAM)(PrintStructures->hPortraitIcon));
}
break;
case rad2: /* Paperorientation */
if (lppd->Flags & PD_PRINTSETUP)
{
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
(LPARAM)(PrintStructures->hLandscapeIcon));
}
break;
case cmb1: