Peter Oberndorfer : msi: Honor msidbControlAttributesSorted attribute for list box.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 7 04:53:15 CST 2007


Module: wine
Branch: master
Commit: a5277fb53b43cf91e04c3711b64b6632f0c71373
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a5277fb53b43cf91e04c3711b64b6632f0c71373

Author: Peter Oberndorfer <kumbayo84 at arcor.de>
Date:   Sat Feb  3 19:56:47 2007 +0100

msi: Honor msidbControlAttributesSorted attribute for list box.

---

 dlls/msi/dialog.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 421105c..7c1cb91 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -2168,14 +2168,18 @@ static UINT msi_dialog_list_box( msi_dia
 {
     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;




More information about the wine-cvs mailing list