No real changes, just make wxMenuBar::MSWGetMenu() const.
There is no reason not to. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,8 +235,8 @@ public:
|
||||
void Refresh( bool eraseBackground,
|
||||
const wxRect *rect = (const wxRect *) NULL ) { wxWindow::Refresh(eraseBackground, rect); }
|
||||
|
||||
// get the menu with given handle (recursively)
|
||||
wxMenu* MSWGetMenu(WXHMENU hMenu);
|
||||
// Get a top level or sub menu with given handle (recursively).
|
||||
wxMenu* MSWGetMenu(WXHMENU hMenu) const;
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
|
@@ -1629,8 +1629,7 @@ void wxMenuBar::Detach()
|
||||
wxMenuBarBase::Detach();
|
||||
}
|
||||
|
||||
// get the menu with given handle (recursively)
|
||||
wxMenu* wxMenuBar::MSWGetMenu(WXHMENU hMenu)
|
||||
wxMenu* wxMenuBar::MSWGetMenu(WXHMENU hMenu) const
|
||||
{
|
||||
// If we're called with the handle of the menu bar itself, we can return
|
||||
// immediately as it certainly can't be the handle of one of our menus.
|
||||
|
Reference in New Issue
Block a user