X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bf07d2635c6ddb733e8b00923b2c6e0842b3a95..4101db8100f956b8ad2ea2d5f9e329134a6cce89:/utils/dialoged/src/dialoged.cpp?ds=inline diff --git a/utils/dialoged/src/dialoged.cpp b/utils/dialoged/src/dialoged.cpp index 776852971d..3485d5dae5 100644 --- a/utils/dialoged/src/dialoged.cpp +++ b/utils/dialoged/src/dialoged.cpp @@ -25,11 +25,13 @@ #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) - EVT_MENU(OBJECT_MENU_EDIT, MyApp::OnObjectPopupMenu) - EVT_MENU(OBJECT_MENU_DELETE, MyApp::OnObjectPopupMenu) END_EVENT_TABLE() MyApp::MyApp(void) @@ -44,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; }