+ // this sample can be launched in several different ways:
+ enum Mode
+ {
+#if wxUSE_MDI_ARCHITECTURE
+ Mode_MDI, // MDI mode: multiple documents, single top level window
+#endif // wxUSE_MDI_ARCHITECTURE
+ Mode_SDI, // SDI mode: multiple documents, multiple top level windows
+ Mode_Single // single document mode (and hence single top level window)
+ };
+
+ MyApp();
+
+ // override some wxApp virtual methods
+ virtual bool OnInit();
+ virtual int OnExit();
+
+ virtual void OnInitCmdLine(wxCmdLineParser& parser);
+ virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
+
+ // our specific methods
+ Mode GetMode() const { return m_mode; }