#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
- Init(title, style, NULL);
+ Init(title, style);
}
- wxMenu( long style );
~wxMenu();
// operations
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
- , const wxFunction func
+ , const wxFunction func = (wxFunction) NULL
#endif
);
#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
- Init(title, style, NULL);
+ Init(title, style);
}
- wxMenu( long style );
~wxMenu();
// operations
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
- , const wxFunction func
+ , const wxFunction func = (wxFunction) NULL
#endif
);
SetIcon(wxICON(mondrian));
// create a menu bar
-// wxMenu *menuFile = new wxMenu;
- wxMenu *menuFile = new wxMenu(wxMENU_TEAROFF);
+ wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF);
menuFile->Append(Minimal_About, "&About...\tCtrl-A", "Show about dialog");
menuFile->Append(Minimal_Test, "&Test...\tCtrl-T", "Test");
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
-wxMenu::wxMenu( const wxString& title, const wxFunction func, long style )
-{
- Init(title, func, style);
-}
-
-wxMenu::wxMenu(long style)
-{
- Init(wxEmptyString, (wxFunction) NULL, style);
-}
-
void
wxMenu::Init( const wxString& title,
- long style,
+ long style
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
-wxMenu::wxMenu( const wxString& title, const wxFunction func, long style )
-{
- Init(title, func, style);
-}
-
-wxMenu::wxMenu(long style)
-{
- Init(wxEmptyString, (wxFunction) NULL, style);
-}
-
void
wxMenu::Init( const wxString& title,
- long style,
+ long style
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif