X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb6290e3514a84a7b50860d1c75d4623696ff601..dee9ba58f5ca2104c0b5749f38a6a7d6ee7fe1cd:/utils/dialoged/src/dialoged.cpp diff --git a/utils/dialoged/src/dialoged.cpp b/utils/dialoged/src/dialoged.cpp index 7c1145286f..d59b19d8f1 100644 --- a/utils/dialoged/src/dialoged.cpp +++ b/utils/dialoged/src/dialoged.cpp @@ -1,4 +1,3 @@ -///////////////////////////////////////////////////////////////////////////// // Name: dialoged.cpp // Purpose: Main Dialog Editor implementation file // Author: Julian Smart @@ -28,24 +27,31 @@ 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) { } wxResourceManager *theResourceManager = NULL; +#include "symbtabl.h" + bool MyApp::OnInit(void) { theResourceManager = new wxResourceManager; theResourceManager->Initialize(); - + theResourceManager->ShowResourceEditor(TRUE); - + if (argc > 1) theResourceManager->Load(argv[1]); - + SetTopWindow(theResourceManager->GetEditorFrame()); - + return TRUE; }