Steven Stein : msi: Added "Default" control condition to msi_dialog_set_control_condition.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 14 15:30:39 CST 2007


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

Author: Steven Stein <frosty522 at wourld.com>
Date:   Sun Feb 11 13:44:54 2007 -0500

msi: Added "Default" control condition to msi_dialog_set_control_condition.

---

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

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 34adf9c..a542546 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -2622,6 +2622,7 @@ static UINT msi_dialog_set_control_condition( MSIRECORD *rec, LPVOID param )
     static const WCHAR szShow[] = { 'S','h','o','w',0 };
     static const WCHAR szDisable[] = { 'D','i','s','a','b','l','e',0 };
     static const WCHAR szEnable[] = { 'E','n','a','b','l','e',0 };
+    static const WCHAR szDefault[] = { 'D','e','f','a','u','l','t',0 };
     msi_dialog *dialog = param;
     msi_control *control;
     LPCWSTR name, action, condition;
@@ -2645,6 +2646,8 @@ static UINT msi_dialog_set_control_condition( MSIRECORD *rec, LPVOID param )
             EnableWindow(control->hwnd, FALSE);
         else if(!strcmpW(action, szEnable))
             EnableWindow(control->hwnd, TRUE);
+        else if(!strcmpW(action, szDefault))
+            SetFocus(control->hwnd);
         else
             FIXME("Unhandled action %s\n", debugstr_w(action));
     }




More information about the wine-cvs mailing list