]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/listbox.cpp
warning fixes (closes 767152)
[wxWidgets.git] / samples / widgets / listbox.cpp
index fa0f8be64451f612df17367a89afcd03cd100156..33d578c86c1f6dd82cb52d0b72ddb70e17524729 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef WX_PRECOMP
     #include "wx/log.h"
 
+    #include "wx/bitmap.h"
     #include "wx/button.h"
     #include "wx/checkbox.h"
     #include "wx/combobox.h"
@@ -351,7 +352,7 @@ void ListboxWidgetsPage::CreateLbox()
             items.Add(m_lbox->GetString(n));
         }
 
-        m_sizerLbox->Remove(m_lbox);
+        m_sizerLbox->Detach( m_lbox );
         delete m_lbox;
     }