Swap portrait/landscape icon when button clicked.
This commit is contained in:
parent
d69c774d55
commit
abecb13435
|
@ -1025,12 +1025,20 @@ static LRESULT PRINTDLG_WMCommand(HWND hDlg, WPARAM wParam,
|
||||||
|
|
||||||
case rad1: /* Paperorientation */
|
case rad1: /* Paperorientation */
|
||||||
if (lppd->Flags & PD_PRINTSETUP)
|
if (lppd->Flags & PD_PRINTSETUP)
|
||||||
|
{
|
||||||
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
|
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
|
||||||
|
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||||
|
(LPARAM)(PrintStructures->hPortraitIcon));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case rad2: /* Paperorientation */
|
case rad2: /* Paperorientation */
|
||||||
if (lppd->Flags & PD_PRINTSETUP)
|
if (lppd->Flags & PD_PRINTSETUP)
|
||||||
|
{
|
||||||
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
|
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
|
||||||
|
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||||
|
(LPARAM)(PrintStructures->hLandscapeIcon));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case cmb1:
|
case cmb1:
|
||||||
|
|
Loading…
Reference in New Issue