X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b127f3011fe1950a6b423c87560f026cdc90e4a3..01e4ec19805f0decf6adde30a9f77b03340d60b5:/utils/dialoged/src/dialoged.cpp?ds=sidebyside diff --git a/utils/dialoged/src/dialoged.cpp b/utils/dialoged/src/dialoged.cpp index 2102995171..3485d5dae5 100644 --- a/utils/dialoged/src/dialoged.cpp +++ b/utils/dialoged/src/dialoged.cpp @@ -25,8 +25,15 @@ #include "dialoged.h" +#if !wxUSE_PROPSHEET +#error Please set wxUSE_PROPSHEET to 1 in setup.h. +#endif + IMPLEMENT_APP(MyApp) +BEGIN_EVENT_TABLE(MyApp, wxApp) +END_EVENT_TABLE() + MyApp::MyApp(void) { } @@ -39,14 +46,14 @@ bool MyApp::OnInit(void) { theResourceManager = new wxResourceManager; theResourceManager->Initialize(); - + theResourceManager->ShowResourceEditor(TRUE); - + if (argc > 1) theResourceManager->Load(argv[1]); - + SetTopWindow(theResourceManager->GetEditorFrame()); - + return TRUE; }