[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Printer setup dialog enhancement
From: Duane Clark <dclark () akamail ! com>
Date: 2001-02-24 20:10:39
[Download RAW message or body]
Howdy,
Since the landscape/portrait icons were added to the printer setup
dialog a couple weeks ago, here is a minor patch so that the
landscape/portrait radio buttons cause an immediate change of the icon.
Duane
["printdlg.patch" (text/plain)]
Index: dlls/commdlg/printdlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/printdlg.c,v
retrieving revision 1.37
diff -u -r1.37 printdlg.c
--- dlls/commdlg/printdlg.c 2001/02/12 19:42:08 1.37
+++ dlls/commdlg/printdlg.c 2001/02/24 19:52:37
@@ -940,12 +940,20 @@
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:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic