]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/datepick.cpp
more wxFD_XXX renamings (patch 1488371)
[wxWidgets.git] / samples / widgets / datepick.cpp
index 9babbf8c0226ceb76e94467407a3b158b1714abb..65c5f84b8732b8689ec52743b02741e7873c0e0a 100644 (file)
@@ -131,10 +131,8 @@ IMPLEMENT_WIDGETS_PAGE(DatePickerWidgetsPage, wxT("DatePicker"),
 
 DatePickerWidgetsPage::DatePickerWidgetsPage(WidgetsBookCtrl *book,
                                          wxImageList *imaglist)
-                      :WidgetsPage(book)
+                      :WidgetsPage(book, imaglist, datepick_xpm)
 {
-    imaglist->Add(wxBitmap(datepick_xpm));
-
     wxSizer *sizerTop = new wxBoxSizer(wxHORIZONTAL);
 
     // left pane