comdlg32: Use values from DeviceCapabilities in combobox.
dpiX,dpiY are the default printer values from the GetDeviceCaps calls. This causes the item data to be the same for every option in the combobox. The item data should reflect the selected values.
This commit is contained in:
parent
a9b3fdd3ae
commit
4ec559743d
1 changed files with 1 additions and 1 deletions
|
@ -1229,7 +1229,7 @@ static BOOL PRINTDLG_ChangePrinterA(HWND hDlg, char *name, PRINT_PTRA *PrintStru
|
|||
if(IsDefault)
|
||||
SendMessageA(hQuality, CB_SETCURSEL, Index, 0);
|
||||
|
||||
SendMessageA(hQuality, CB_SETITEMDATA, Index, MAKELONG(dpiX,dpiY));
|
||||
SendMessageA(hQuality, CB_SETITEMDATA, Index, MAKELONG(Resolutions[i], Resolutions[i+1]));
|
||||
}
|
||||
free(Resolutions);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue