]> git.saurik.com Git - wxWidgets.git/commitdiff
Peaceful solution to wxCheckListBox inheritance in WinCE and wxListBox::Clear() ambig...
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 5 Jun 2006 20:37:57 +0000 (20:37 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 5 Jun 2006 20:37:57 +0000 (20:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/listbox.cpp

index 82e6021245bebede1edc338fea6425569ac1c60d..1bbd3faa46257f0f1327b31d575b32d23cb412b9 100644 (file)
@@ -142,7 +142,13 @@ protected:
                *m_chkOwnerDraw;
 
     // the listbox itself and the sizer it is in
-    wxListBoxBase *m_lbox;
+#ifdef __WXWINCE__
+    wxListBoxBase
+#else
+    wxListBox 
+#endif
+                  *m_lbox;
+
     wxSizer *m_sizerLbox;
 
     // the text entries for "Add/change string" and "Delete" buttons
@@ -216,7 +222,7 @@ ListboxWidgetsPage::ListboxWidgetsPage(WidgetsBookCtrl *book,
     m_chkSort =
     m_chkOwnerDraw = (wxCheckBox *)NULL;
 
-    m_lbox = (wxListBoxBase *)NULL;
+    m_lbox = NULL;
     m_sizerLbox = (wxSizer *)NULL;
 
     /*