The menubar dynamic sizing patch broke any app which adds an empty
menubar and populates it later. Since this is (or at least was) a valid way to use wxMenuBar before that, we need to recalculate the size whenever it might change. (We probably need to do it anyway for this to be completely useful). This patch isn't the cleanest or most efficient way to do that, but it's a minimal change on a new feature that at least restores compatibility. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,8 +96,14 @@ protected:
|
||||
virtual void DoGetClientSize( int *width, int *height ) const;
|
||||
|
||||
#if wxUSE_MENUS_NATIVE
|
||||
|
||||
virtual void DetachMenuBar();
|
||||
virtual void AttachMenuBar(wxMenuBar *menubar);
|
||||
|
||||
public:
|
||||
// Menu size is dynamic now, call this whenever it might change.
|
||||
void UpdateMenuBarSize();
|
||||
|
||||
#endif // wxUSE_MENUS_NATIVE
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxFrame)
|
||||
|
Reference in New Issue
Block a user