]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/univ/listbox.h
use wxColourDatabase::Find(), not obsolete FindColour(), in wxColour::InitFromName()
[wxWidgets.git] / include / wx / univ / listbox.h
index 06df165a0103bd05c093122540a64c83b694198a..b5c6cc2c21d42b26ae007bd06c36f0a158c3f16c 100644 (file)
@@ -56,7 +56,7 @@ class WXDLLEXPORT wxListBox : public wxListBoxBase, public wxScrollHelper
 {
 public:
     // ctors and such
 {
 public:
     // ctors and such
-    wxListBox();
+    wxListBox() { Init(); }
     wxListBox(wxWindow *parent,
               wxWindowID id,
               const wxPoint& pos = wxDefaultPosition,
     wxListBox(wxWindow *parent,
               wxWindowID id,
               const wxPoint& pos = wxDefaultPosition,
@@ -64,7 +64,12 @@ public:
               int n = 0, const wxString choices[] = (const wxString *) NULL,
               long style = 0,
               const wxValidator& validator = wxDefaultValidator,
               int n = 0, const wxString choices[] = (const wxString *) NULL,
               long style = 0,
               const wxValidator& validator = wxDefaultValidator,
-              const wxString& name = wxListBoxNameStr );
+              const wxString& name = wxListBoxNameStr )
+    {
+        Init();
+
+        Create(parent, id, pos, size, n, choices, style, validator, name);
+    }
 
     virtual ~wxListBox();
 
 
     virtual ~wxListBox();