wineps.drv: Make the Apply button useable.
This commit is contained in:
parent
761ce56643
commit
9aa9a1229f
|
@ -236,9 +236,9 @@ static INT_PTR CALLBACK PSDRV_PaperDlgProc(HWND hwnd, UINT msg,
|
||||||
if(i >= Cursel) break;
|
if(i >= Cursel) break;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
TRACE("Setting pagesize to item %d Winpage = %d\n", Cursel,
|
TRACE("Setting pagesize to item %d Winpage = %d\n", Cursel, ps->WinPage);
|
||||||
ps->WinPage);
|
|
||||||
di->dlgdm->dmPublic.u1.s1.dmPaperSize = ps->WinPage;
|
di->dlgdm->dmPublic.u1.s1.dmPaperSize = ps->WinPage;
|
||||||
|
SendMessageW(GetParent(hwnd), PSM_CHANGED, 0, 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDD_ORIENT_PORTRAIT:
|
case IDD_ORIENT_PORTRAIT:
|
||||||
|
@ -247,15 +247,16 @@ static INT_PTR CALLBACK PSDRV_PaperDlgProc(HWND hwnd, UINT msg,
|
||||||
"portrait" : "landscape");
|
"portrait" : "landscape");
|
||||||
di->dlgdm->dmPublic.u1.s1.dmOrientation = wParam == IDD_ORIENT_PORTRAIT ?
|
di->dlgdm->dmPublic.u1.s1.dmOrientation = wParam == IDD_ORIENT_PORTRAIT ?
|
||||||
DMORIENT_PORTRAIT : DMORIENT_LANDSCAPE;
|
DMORIENT_PORTRAIT : DMORIENT_LANDSCAPE;
|
||||||
|
SendMessageW(GetParent(hwnd), PSM_CHANGED, 0, 0);
|
||||||
break;
|
break;
|
||||||
case IDD_DUPLEX:
|
case IDD_DUPLEX:
|
||||||
if(HIWORD(wParam) == CBN_SELCHANGE) {
|
if(HIWORD(wParam) == CBN_SELCHANGE) {
|
||||||
Cursel = SendDlgItemMessageA(hwnd, LOWORD(wParam), CB_GETCURSEL, 0, 0);
|
Cursel = SendDlgItemMessageA(hwnd, LOWORD(wParam), CB_GETCURSEL, 0, 0);
|
||||||
for(i = 0, duplex = di->pi->ppd->Duplexes; i < Cursel; i++, duplex = duplex->next)
|
for(i = 0, duplex = di->pi->ppd->Duplexes; i < Cursel; i++, duplex = duplex->next)
|
||||||
;
|
;
|
||||||
TRACE("Setting duplex to item %d Winduplex = %d\n", Cursel,
|
TRACE("Setting duplex to item %d Winduplex = %d\n", Cursel, duplex->WinDuplex);
|
||||||
duplex->WinDuplex);
|
|
||||||
di->dlgdm->dmPublic.dmDuplex = duplex->WinDuplex;
|
di->dlgdm->dmPublic.dmDuplex = duplex->WinDuplex;
|
||||||
|
SendMessageW(GetParent(hwnd), PSM_CHANGED, 0, 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue