]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/listbox.cpp
warning fix
[wxWidgets.git] / src / univ / listbox.cpp
index a938fbd880d12f444a1822b5338d8fdf85dc2d05..58917edc04daa2d1efc9176add6b734c17f4ccbc 100644 (file)
@@ -84,6 +84,7 @@ wxListBox::wxListBox(wxWindow *parent,
                      long style,
                      const wxValidator& validator,
                      const wxString &name)
                      long style,
                      const wxValidator& validator,
                      const wxString &name)
+          :wxScrollHelper(this)
 {
     Init();
 
 {
     Init();
 
@@ -135,8 +136,6 @@ bool wxListBox::Create(wxWindow *parent,
                             validator, name) )
         return false;
 
                             validator, name) )
         return false;
 
-    SetWindow(this);
-
     m_strings = new wxArrayString;
 
     Set(n, choices);
     m_strings = new wxArrayString;
 
     Set(n, choices);