virtual void SetTitle(const wxString& title);
- // MSW-specific
- bool ProcessCommand(wxCommandEvent& event);
-
-#if WXWIN_COMPATIBILITY
+ // deprecated functions
+#if wxUSE_MENU_CALLBACK
wxMenu(const wxString& title, const wxFunction func)
: wxMenuBase(title)
{
+ Init();
+
Callback(func);
}
-#endif // WXWIN_COMPATIBILITY
+#endif // wxUSE_MENU_CALLBACK
+
+ // MSW-specific
+ bool ProcessCommand(wxCommandEvent& event);
// implementation only from now on
// -------------------------------
// implementation from now on
WXHMENU Create();
- int FindMenu(const wxString& title);
void Detach();
// returns TRUE if we're attached to a frame