Call LoadImage to load the non-standard sized collate icons.

This commit is contained in:
Huw D M Davies 2001-02-12 03:38:14 +00:00 committed by Alexandre Julliard
parent 804edb1cec
commit a247086cfc

View file

@ -639,10 +639,12 @@ static LRESULT PRINTDLG_WMInitDialog(HWND hDlg, WPARAM wParam,
UINT comboID = (lppd->Flags & PD_PRINTSETUP) ? cmb1 : cmb4;
/* load Collate ICONs */
/* We load these with LoadImage becasue they are not a standard
size and we don't want them rescaled */
PrintStructures->hCollateIcon =
LoadIconA(COMDLG32_hInstance, "PD32_COLLATE");
LoadImageA(COMDLG32_hInstance, "PD32_COLLATE", IMAGE_ICON, 0, 0, 0);
PrintStructures->hNoCollateIcon =
LoadIconA(COMDLG32_hInstance, "PD32_NOCOLLATE");
LoadImageA(COMDLG32_hInstance, "PD32_NOCOLLATE", IMAGE_ICON, 0, 0, 0);
if(PrintStructures->hCollateIcon == 0 ||
PrintStructures->hNoCollateIcon == 0) {
ERR("no icon in resourcefile\n");