]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/dialog.h
use new style creation (MSWCreateControl() and MSWGetStyle()); adjust the drop down...
[wxWidgets.git] / include / wx / msw / dialog.h
index 2a0631bb54881c77cce7188157aaba0a975b0aa1..7073936cc581311f1234dcc9881693ecb6df0de2 100644 (file)
@@ -35,6 +35,8 @@ public:
              long style = wxDEFAULT_DIALOG_STYLE,
              const wxString& name = wxDialogNameStr)
     {
+        Init();
+
         long modalStyle = modal ? wxDIALOG_MODAL : wxDIALOG_MODELESS ;
         Create(parent, -1, title, wxPoint(x, y), wxSize(width, height),
                style | modalStyle, name);
@@ -48,7 +50,9 @@ public:
              long style = wxDEFAULT_DIALOG_STYLE,
              const wxString& name = wxDialogNameStr)
     {
-        Create(parent, id, title, pos, size, style, name);
+        Init();
+
+        (void)Create(parent, id, title, pos, size, style, name);
     }
 
     bool Create(wxWindow *parent, wxWindowID id,