]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/spinbtn.cpp
unused var warning
[wxWidgets.git] / samples / widgets / spinbtn.cpp
index 281fab9bd7eb6ede8cc26369ac455cebe42d669c..d0c53b37bf18e37461e0943fd528f305738d66dc 100644 (file)
@@ -24,6 +24,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_SPINBTN
+
 // for all others, include the necessary headers
 #ifndef WX_PRECOMP
     #include "wx/log.h"
@@ -42,7 +44,7 @@
 #include "wx/sizer.h"
 
 #include "widgets.h"
-#if wxUSE_SPINBTN
+
 #include "icons/spinbtn.xpm"
 
 // ----------------------------------------------------------------------------
@@ -71,9 +73,11 @@ enum
 class SpinBtnWidgetsPage : public WidgetsPage
 {
 public:
-    SpinBtnWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
+    SpinBtnWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
     virtual ~SpinBtnWidgetsPage(){};
 
+    virtual wxControl *GetWidget() const { return m_spinbtn; }
+
 protected:
     // event handlers
     void OnButtonReset(wxCommandEvent& event);
@@ -162,9 +166,9 @@ END_EVENT_TABLE()
 
 IMPLEMENT_WIDGETS_PAGE(SpinBtnWidgetsPage, _T("Spin"));
 
-SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxNotebook *notebook,
+SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxBookCtrl *book,
                                        wxImageList *imaglist)
-                  : WidgetsPage(notebook)
+                  : WidgetsPage(book)
 {
     m_chkVert = NULL;
     m_chkWrap = NULL;