Commit c1b7a825 authored by Peter Oberndorfer's avatar Peter Oberndorfer Committed by Alexandre Julliard

msi: Honor attributes for combobox.

parent a5277fb5
......@@ -1124,9 +1124,18 @@ static UINT msi_dialog_icon_control( msi_dialog *dialog, MSIRECORD *rec )
static UINT msi_dialog_combo_control( msi_dialog *dialog, MSIRECORD *rec )
{
static const WCHAR szCombo[] = { 'C','O','M','B','O','B','O','X',0 };
DWORD attributes, style;
style = CBS_AUTOHSCROLL | WS_TABSTOP | WS_GROUP | WS_CHILD;
attributes = MSI_RecordGetInteger( rec, 8 );
if ( ~attributes & msidbControlAttributesSorted)
style |= CBS_SORT;
if ( attributes & msidbControlAttributesComboList)
style |= CBS_DROPDOWNLIST;
else
style |= CBS_DROPDOWN;
msi_dialog_add_control( dialog, rec, szCombo,
SS_BITMAP | SS_LEFT | SS_CENTERIMAGE );
msi_dialog_add_control( dialog, rec, szCombo, style );
return ERROR_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment