X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc160ba62b1b635a6c74a8ede9af19e93c025f6e..e63fdcd600e2eb717a19f9fa2895e9256e83c890:/include/wx/msw/menu.h diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 25364af1be..30815349c3 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -54,6 +54,8 @@ public: wxMenu(const wxString& title, const wxFunction func) : wxMenuBase(title) { + Init(); + Callback(func); } #endif // wxUSE_MENU_CALLBACK @@ -151,7 +153,6 @@ public: // implementation from now on WXHMENU Create(); - int FindMenu(const wxString& title); void Detach(); // returns TRUE if we're attached to a frame