X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c50f1fb9226d9260454ccb9c8a67d0be23c2827f..420ec58abbf042de49ccde2253abd96dbc85c8ff:/src/msw/menu.cpp?ds=sidebyside diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index ef870cc461..fee40a5cee 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -78,9 +78,13 @@ static const int idMenuTitle = -2; // --------------------------------------------------------------------------- // Construct a menu with optional title (then use append) -wxMenu::wxMenu(const wxString& title, const wxFunction func) - : m_title(title) +void wxMenu::Init(const wxString& title +#ifdef WXWIN_COMPATIBILITY + , const wxFunction func +#endif + ) { + m_title = title; m_parent = NULL; m_eventHandler = this; m_pInvokingWindow = NULL;