msi: Honor msidbControlAttributesSorted attribute for list box.

This commit is contained in:
Peter Oberndorfer 2007-02-03 19:56:47 +01:00 committed by Alexandre Julliard
parent 24dbdf8fa5
commit a5277fb53b
1 changed files with 6 additions and 2 deletions

View File

@ -2168,14 +2168,18 @@ static UINT msi_dialog_list_box( msi_dialog *dialog, MSIRECORD *rec )
{
struct msi_listbox_info *info;
msi_control *control;
DWORD style;
DWORD attributes, style;
LPCWSTR prop;
info = msi_alloc( sizeof *info );
if (!info)
return ERROR_FUNCTION_FAILED;
style = WS_TABSTOP | WS_GROUP | WS_CHILD | LBS_STANDARD;
style = WS_TABSTOP | WS_GROUP | WS_CHILD | LBS_NOTIFY | WS_VSCROLL | WS_BORDER;
attributes = MSI_RecordGetInteger( rec, 8 );
if (~attributes & msidbControlAttributesSorted)
style |= LBS_SORT;
control = msi_dialog_add_control( dialog, rec, WC_LISTBOXW, style );
if (!control)
return ERROR_FUNCTION_FAILED;