X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/545a0b000fca32836dc4928300e28553b16989f8..761df41e86ceeed56d32c038a6c9f88554d4f47a:/samples/proplist/proplist.cpp diff --git a/samples/proplist/proplist.cpp b/samples/proplist/proplist.cpp index 92a762c866..af8c22b74e 100644 --- a/samples/proplist/proplist.cpp +++ b/samples/proplist/proplist.cpp @@ -24,6 +24,11 @@ #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) @@ -232,8 +237,18 @@ void MyApp::PropertyFormTest(bool useDialog) propFrame->Initialize(); m_childWindow = propFrame; } - - wxWindow *panel = propDialog ? propDialog : propFrame->GetPropertyPanel(); + + // BCC32 does not like ?: + wxWindow *panel ; + if ( propDialog ) + { + panel = propDialog ; + } + else + { + panel = propFrame->GetPropertyPanel() ; + } + wxLayoutConstraints* c; #if 0