X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41c09d481c8a72951ceb7c7dcba5b3fec3d530c2..9d8c2f419f522408a922277df330d4c4511befb9:/utils/dialoged/src/dialoged.h diff --git a/utils/dialoged/src/dialoged.h b/utils/dialoged/src/dialoged.h index adfcb9ace9..458733bc17 100644 --- a/utils/dialoged/src/dialoged.h +++ b/utils/dialoged/src/dialoged.h @@ -19,15 +19,25 @@ #include "wx/proplist.h" #include "reseditr.h" +extern void ObjectMenuProc(wxMenu *menu, wxCommandEvent& event); + class MyChild; // Define a new application class MyApp: public wxApp { - public: +public: MyApp(void); bool OnInit(void); int OnExit(void); + + void OnObjectPopupMenu(wxCommandEvent& event) + { + ObjectMenuProc((wxMenu *)event.GetEventObject(), event); + } + +private: + DECLARE_EVENT_TABLE() }; DECLARE_APP(MyApp)