]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/univ/control.h
Fixed bug #1022383: 'several ComboBoxes appear selected'
[wxWidgets.git] / include / wx / univ / control.h
index 2a903039ac0c3ea47d0a4c021c002cff9186554c..710e6307fdecf3965428bd30f2b6a08c57412473 100644 (file)
@@ -45,14 +45,19 @@ typedef wxString wxControlAction;
 class WXDLLEXPORT wxControl : public wxControlBase, public wxInputConsumer
 {
 public:
-    wxControl();
+    wxControl() { Init(); }
 
     wxControl(wxWindow *parent,
               wxWindowID id,
               const wxPoint& pos = wxDefaultPosition,
               const wxSize& size = wxDefaultSize, long style = 0,
               const wxValidator& validator = wxDefaultValidator,
-              const wxString& name = wxControlNameStr);
+              const wxString& name = wxControlNameStr)
+    {
+        Init();
+
+        Create(parent, id, pos, size, style, validator, name);
+    }
 
     bool Create(wxWindow *parent,
                 wxWindowID id,