Fixed collate icon behavior.

This commit is contained in:
James Hawkins 2004-07-16 23:43:20 +00:00 committed by Alexandre Julliard
parent 57aa9ebc38
commit 0a8c92b499

View File

@ -1622,9 +1622,20 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
if(HIWORD(wParam) == EN_CHANGE) {
INT copies = GetDlgItemInt(hDlg, edt3, NULL, FALSE);
if(copies <= 1)
{
CheckDlgButton(hDlg, chx2, BST_UNCHECKED);
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE,
(WPARAM) IMAGE_ICON, 0);
EnableWindow(GetDlgItem(hDlg, chx2), FALSE);
}
else
{
EnableWindow(GetDlgItem(hDlg, chx2), TRUE);
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE,
(WPARAM) IMAGE_ICON,
(LPARAM)PrintStructures->hNoCollateIcon);
}
}
break;