]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/univ/dialog.h
moved SetBestSize() to .cpp file; set min size from it
[wxWidgets.git] / include / wx / univ / dialog.h
index 7bf987c18e052428a99f16801c27ee650f3e0a34..fe7dfe70034a56de1a58e86286e3f21580475b6f 100644 (file)
@@ -23,7 +23,7 @@ class WXDLLEXPORT wxEventLoop;
 class WXDLLEXPORT wxDialog : public wxDialogBase
 {
 public:
-    wxDialog();
+    wxDialog() { Init(); }
 
     // Constructor with no modal flag - the new convention.
     wxDialog(wxWindow *parent, wxWindowID id,
@@ -31,7 +31,11 @@ public:
              const wxPoint& pos = wxDefaultPosition,
              const wxSize& size = wxDefaultSize,
              long style = wxDEFAULT_DIALOG_STYLE,
-             const wxString& name = wxDialogNameStr);
+             const wxString& name = wxDialogNameStr)
+    {
+        Init();
+        Create(parent, id, title, pos, size, style, name);
+    }
 
     bool Create(wxWindow *parent, wxWindowID id,
                 const wxString& title,