- Timestamp:
- Oct 13, 2003, 11:14:54 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comdlg32/printdlg.c
r9570 r10267 1778 1778 (WPARAM) hDlg, (LPARAM) lppd); 1779 1779 break; 1780 1780 #ifdef __WIN32OS2__ 1781 //PF Surely we need to clear/set this flag during runtime as well! 1782 case chx1: 1783 if (IsDlgButtonChecked(hDlg, chx1) == BST_CHECKED) 1784 lppd->Flags |= PD_PRINTTOFILE; 1785 else 1786 lppd->Flags &= ~PD_PRINTTOFILE; 1787 break; 1788 #endif 1781 1789 case chx2: /* collate pages checkbox */ 1782 1790 if (IsDlgButtonChecked(hDlg, chx2) == BST_CHECKED) … … 1852 1860 if (lppd->Flags & PD_PRINTSETUP) 1853 1861 { 1862 #ifdef __WIN32OS2__ 1863 lpdm->dmFields |= DM_ORIENTATION; 1864 #endif 1854 1865 lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT; 1855 1866 SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON, … … 1861 1872 if (lppd->Flags & PD_PRINTSETUP) 1862 1873 { 1874 #ifdef __WIN32OS2__ 1875 lpdm->dmFields |= DM_ORIENTATION; 1876 #endif 1863 1877 lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE; 1864 1878 SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON, … … 2019 2033 if (lppd->Flags & PD_PRINTSETUP) 2020 2034 { 2035 #ifdef __WIN32OS2__ 2036 lpdm->dmFields |= DM_ORIENTATION; 2037 #endif 2021 2038 lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT; 2022 2039 SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON, … … 2028 2045 if (lppd->Flags & PD_PRINTSETUP) 2029 2046 { 2047 #ifdef __WIN32OS2__ 2048 lpdm->dmFields |= DM_ORIENTATION; 2049 #endif 2030 2050 lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE; 2031 2051 SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON, … … 3126 3146 pda->dlga->ptPaperSize.x = pda->dlga->ptPaperSize.y; 3127 3147 pda->dlga->ptPaperSize.y = tmp; 3148 3149 #ifdef __WIN32OS2__ 3150 dm->dmFields |= DM_ORIENTATION; 3151 dm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE; 3152 #endif 3153 3128 3154 } 3129 3155 GlobalUnlock(pda->pdlg.hDevNames); … … 3167 3193 pda->dlga->ptPaperSize.x = pda->dlga->ptPaperSize.y; 3168 3194 pda->dlga->ptPaperSize.y = tmp; 3195 3196 #ifdef __WIN32OS2__ 3197 dm->dmFields |= DM_ORIENTATION; 3198 dm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE; 3199 #endif 3200 3169 3201 } 3170 3202 GlobalUnlock(pda->pdlg.hDevNames); … … 3497 3529 (LPARAM)pda) 3498 3530 ); 3531 #ifdef __WIN32OS2__ 3532 //On return we should overwrite the input devmode & devnames with the one 3533 //set up by the dialog 3534 setupdlg->hDevMode = pdlg.hDevMode; 3535 setupdlg->hDevNames = pdlg.hDevNames; 3536 #endif 3499 3537 return bRet; 3500 3538 } … … 3564 3602 (LPARAM)pdw) 3565 3603 ); 3604 #ifdef __WIN32OS2__ 3605 //On return we should overwrite the input devmode & devnames with the one 3606 //set up by the dialog 3607 setupdlg->hDevMode = pdlg.hDevMode; 3608 setupdlg->hDevNames = pdlg.hDevNames; 3609 #endif 3566 3610 return bRet; 3567 3611 }
Note:
See TracChangeset
for help on using the changeset viewer.