// menu construction
// -----------------
- // append a separator to the menu
- void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
-
// append a normal item to the menu
void Append(int id,
const wxString& text,
DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, isCheckable));
}
+ // append a separator to the menu
+ void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
+
// append a submenu
void Append(int id,
const wxString& text,
wxFunction m_callback;
#endif // WXWIN_COMPATIBILITY
+ // unlike FindItem(), this function doesn't recurse but only looks through
+ // our direct children and also may return the index of the found child if
+ // pos != NULL
+ wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const;
+
protected:
// virtuals to override in derived classes
// ---------------------------------------
// common part of all ctors
void Init(long style);
- // unlike FindItem(), this function doesn't recurse but only looks through
- // our direct children and also may return the index of the found child if
- // pos != NULL
- wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const;
-
protected:
wxMenuBar *m_menuBar; // menubar we belong to or NULL
wxMenu *m_menuParent; // parent menu or NULL