]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/proplist/proplist.cpp
Define SF_UNICODE if undefined
[wxWidgets.git] / samples / proplist / proplist.cpp
index 92a762c866e12ab871c5109c255a6f7ea8cca502..af8c22b74e377bfe491f45a195ab99fa08f90834 100644 (file)
 #include "wx/wx.h"
 #endif
 
 #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)
 #include "proplist.h"
 
 IMPLEMENT_APP(MyApp)
@@ -232,8 +237,18 @@ void MyApp::PropertyFormTest(bool useDialog)
     propFrame->Initialize();
     m_childWindow = propFrame;
   }
     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
   wxLayoutConstraints* c;
 
 #if 0