From a5277fb53b43cf91e04c3711b64b6632f0c71373 Mon Sep 17 00:00:00 2001 From: Peter Oberndorfer Date: Sat, 3 Feb 2007 19:56:47 +0100 Subject: [PATCH] msi: Honor msidbControlAttributesSorted attribute for list box. --- dlls/msi/dialog.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 421105c17d7..7c1cb9149b9 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -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;