comdlg32: Update dmFormName when changing paper size in print UI.
This commit is contained in:
parent
eaa747311f
commit
2b9d337f6d
@ -1798,10 +1798,12 @@ static LRESULT PRINTDLG_WMCommandA(HWND hDlg, WPARAM wParam,
|
|||||||
case cmb2: /* Papersize */
|
case cmb2: /* Papersize */
|
||||||
{
|
{
|
||||||
DWORD Sel = SendDlgItemMessageA(hDlg, cmb2, CB_GETCURSEL, 0, 0);
|
DWORD Sel = SendDlgItemMessageA(hDlg, cmb2, CB_GETCURSEL, 0, 0);
|
||||||
if(Sel != CB_ERR)
|
if(Sel != CB_ERR) {
|
||||||
lpdm->u1.s1.dmPaperSize = SendDlgItemMessageA(hDlg, cmb2,
|
lpdm->u1.s1.dmPaperSize = SendDlgItemMessageA(hDlg, cmb2,
|
||||||
CB_GETITEMDATA,
|
CB_GETITEMDATA,
|
||||||
Sel, 0);
|
Sel, 0);
|
||||||
|
GetDlgItemTextA(hDlg, cmb2, (char *)lpdm->dmFormName, CCHFORMNAME);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1954,10 +1956,12 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
|
|||||||
case cmb2: /* Papersize */
|
case cmb2: /* Papersize */
|
||||||
{
|
{
|
||||||
DWORD Sel = SendDlgItemMessageW(hDlg, cmb2, CB_GETCURSEL, 0, 0);
|
DWORD Sel = SendDlgItemMessageW(hDlg, cmb2, CB_GETCURSEL, 0, 0);
|
||||||
if(Sel != CB_ERR)
|
if(Sel != CB_ERR) {
|
||||||
lpdm->u1.s1.dmPaperSize = SendDlgItemMessageW(hDlg, cmb2,
|
lpdm->u1.s1.dmPaperSize = SendDlgItemMessageW(hDlg, cmb2,
|
||||||
CB_GETITEMDATA,
|
CB_GETITEMDATA,
|
||||||
Sel, 0);
|
Sel, 0);
|
||||||
|
GetDlgItemTextW(hDlg, cmb2, lpdm->dmFormName, CCHFORMNAME);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user