#include "wx/wx.h"
#endif
+
+#if !wxUSE_PROPSHEET
+#error Please set wxUSE_PROPSHEET to 1 in include/wx/msw/setup.h and recompile.
+#endif
+
#include "proplist.h"
IMPLEMENT_APP(MyApp)
if (useDialog)
{
- view->ShowView(sheet, propDialog);
+ view->ShowView(sheet, (wxPanel *)propDialog);
propDialog->Centre(wxBOTH);
propDialog->Show(TRUE);
}
propFrame->Initialize();
m_childWindow = propFrame;
}
-
- wxPanel *panel = propDialog ? propDialog : propFrame->GetPropertyPanel();
+
+ // BCC32 does not like ?:
+ wxWindow *panel ;
+ if ( propDialog )
+ {
+ panel = propDialog ;
+ }
+ else
+ {
+ panel = propFrame->GetPropertyPanel() ;
+ }
+
wxLayoutConstraints* c;
#if 0