X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fef0a6eaea2cf6e4cbd3a833f07f253ef2ab403..c9468a241baaa09bbc82eb45da40a1d15c630f4d:/samples/tab/tab.cpp diff --git a/samples/tab/tab.cpp b/samples/tab/tab.cpp index 13d24ec506..c581ac1760 100644 --- a/samples/tab/tab.cpp +++ b/samples/tab/tab.cpp @@ -23,6 +23,10 @@ #include "wx/tab.h" #include "tab.h" +#if wxUSE_TAB_DIALOG == 0 +#error "wxUSE_TAB_DIALOG must be defined as 1 in setup.h." +#endif + // If 1, use a dialog. Otherwise use a frame. #define USE_TABBED_DIALOG 1 @@ -166,7 +170,7 @@ void MyDialog::Init(void) // Note, omit the wxTAB_STYLE_COLOUR_INTERIOR, so we will guarantee a match // with the panel background, and save a bit of time. - wxPanelTabView *view = new wxPanelTabView(this, wxTAB_STYLE_DRAW_BOX); + wxPanelTabView *view = new wxPanelTabView((wxPanel *)this, wxTAB_STYLE_DRAW_BOX); wxGetApp().InitTabView(view, this);