]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/static.cpp
more wxFD_XXX renamings (patch 1488371)
[wxWidgets.git] / samples / widgets / static.cpp
index 0082fde6fd9a47cf192976d1c38bf373acafa223..05c13669092853523c59821707015315528d1710 100644 (file)
@@ -210,10 +210,8 @@ IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static"),
 
 StaticWidgetsPage::StaticWidgetsPage(WidgetsBookCtrl *book,
                                      wxImageList *imaglist)
 
 StaticWidgetsPage::StaticWidgetsPage(WidgetsBookCtrl *book,
                                      wxImageList *imaglist)
-                  : WidgetsPage(book)
+                  : WidgetsPage(book, imaglist, statbox_xpm)
 {
 {
-    imaglist->Add(wxBitmap(statbox_xpm));
-
     // init everything
     m_chkVert =
     m_chkAutoResize = (wxCheckBox *)NULL;
     // init everything
     m_chkVert =
     m_chkAutoResize = (wxCheckBox *)NULL;