msi 3: Add a stub implementation of the VolumeCostList control

James Hawkins truiken at gmail.com
Fri Aug 25 17:42:28 CDT 2006


Hi,

This is the first patch of many for bug 4402.
http://bugs.winehq.org/show_bug.cgi?id=4402

Changelog:
* Add a stub implementation of the VolumeCostList control.

 dlls/msi/dialog.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 1c93e87..77d4229 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -141,6 +141,7 @@ static const WCHAR szGroupBox[] = { 'G',
 static const WCHAR szListBox[] = { 'L','i','s','t','B','o','x',0 };
 static const WCHAR szDirectoryCombo[] = { 'D','i','r','e','c','t','o','r','y','C','o','m','b','o',0 };
 static const WCHAR szDirectoryList[] = { 'D','i','r','e','c','t','o','r','y','L','i','s','t',0 };
+static const WCHAR szVolumeCostList[] = { 'V','o','l','u','m','e','C','o','s','t','L','i','s','t',0 };
 
 static UINT msi_dialog_checkbox_handler( msi_dialog *, msi_control *, WPARAM );
 static void msi_dialog_checkbox_sync_state( msi_dialog *, msi_control * );
@@ -2040,6 +2041,23 @@ static UINT msi_dialog_directory_list( m
     return ERROR_SUCCESS;
 }
 
+/******************** VolumeCost List ***************************************/
+
+static UINT msi_dialog_volumecost_list( msi_dialog *dialog, MSIRECORD *rec )
+{
+    msi_control *control;
+    DWORD style;
+
+    style = LVS_REPORT | WS_VSCROLL | WS_HSCROLL | LVS_SHAREIMAGELISTS |
+            LVS_AUTOARRANGE | LVS_SINGLESEL | WS_BORDER |
+            WS_CHILD | WS_TABSTOP | WS_GROUP;
+    control = msi_dialog_add_control( dialog, rec, WC_LISTVIEWW, style );
+    if (!control)
+        return ERROR_FUNCTION_FAILED;
+
+    return ERROR_SUCCESS;
+}
+
 static const struct control_handler msi_dialog_handler[] =
 {
     { szText, msi_dialog_text_control },
@@ -2060,6 +2078,7 @@ static const struct control_handler msi_
     { szListBox, msi_dialog_list_box },
     { szDirectoryCombo, msi_dialog_directory_combo },
     { szDirectoryList, msi_dialog_directory_list },
+    { szVolumeCostList, msi_dialog_volumecost_list },
 };
 
 #define NUM_CONTROL_TYPES (sizeof msi_dialog_handler/sizeof msi_dialog_handler[0])
-- 
1.4.2


More information about the wine-patches mailing list