X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b127f3011fe1950a6b423c87560f026cdc90e4a3..59af5f19d077fa88fad9bf6a01040f5af390da79:/utils/dialoged/src/dialoged.cpp 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; }