X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fef0a6eaea2cf6e4cbd3a833f07f253ef2ab403..08a15c0d899daad0ff8cc2ed4c06ff78b8ec3cc3:/samples/tab/tab.cpp diff --git a/samples/tab/tab.cpp b/samples/tab/tab.cpp index 13d24ec506..055ebf099d 100644 --- a/samples/tab/tab.cpp +++ b/samples/tab/tab.cpp @@ -6,7 +6,7 @@ // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx.h". @@ -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);