X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9133965ef55aa16091bfb3bed910357720dd4810..4df123bce5ee66ac3aa2985a752b1ddd26725e84:/samples/notebook/notebook.h?ds=sidebyside diff --git a/samples/notebook/notebook.h b/samples/notebook/notebook.h index 28cf666261..1eac27735d 100644 --- a/samples/notebook/notebook.h +++ b/samples/notebook/notebook.h @@ -48,13 +48,19 @@ public: void OnDeleteLastPage(wxCommandEvent& event); void OnNextPage(wxCommandEvent& event); +#if wxUSE_NOTEBOOK void OnNotebook(wxNotebookEvent& event); +#endif +#if wxUSE_CHOICEBOOK void OnChoicebook(wxChoicebookEvent& event); +#endif +#if wxUSE_LISTBOOK void OnListbook(wxListbookEvent& event); +#endif void OnIdle(wxIdleEvent& event); - wxBookCtrl *GetCurrentBook(); + wxBookCtrlBase *GetCurrentBook(); private: wxLog *m_logTargetOld; @@ -73,9 +79,15 @@ private: wxPanel *m_panel; // Panel containing notebook and other controls +#if wxUSE_NOTEBOOK wxNotebook *m_notebook; +#endif +#if wxUSE_CHOICEBOOK wxChoicebook *m_choicebook; +#endif +#if wxUSE_LISTBOOK wxListbook *m_listbook; +#endif #if USE_LOG // Log window