git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31074
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{ return m_useNativeStatusBar; };
#endif // wxUSE_STATUSBAR
{ return m_useNativeStatusBar; };
#endif // wxUSE_STATUSBAR
WXHMENU GetWinMenu() const { return m_hMenu; }
WXHMENU GetWinMenu() const { return m_hMenu; }
// event handlers
bool HandlePaint();
// event handlers
bool HandlePaint();
static bool m_useNativeStatusBar;
#endif // wxUSE_STATUSBAR
static bool m_useNativeStatusBar;
#endif // wxUSE_STATUSBAR
+#if wxUSE_MENUS
+ // frame menu, NULL if none
+ WXHMENU m_hMenu;
+#endif // wxUSE_MENUS
+
private:
#if wxUSE_TOOLTIPS
WXHWND m_hwndToolTip;
private:
#if wxUSE_TOOLTIPS
WXHWND m_hwndToolTip;
int m_lastMouseEvent;
#endif // wxUSE_MOUSEEVENT_HACK
int m_lastMouseEvent;
#endif // wxUSE_MOUSEEVENT_HACK
- WXHMENU m_hMenu; // Menu, if any
-
// implement the base class pure virtuals
virtual void DoClientToScreen( int *x, int *y ) const;
virtual void DoScreenToClient( int *x, int *y ) const;
// implement the base class pure virtuals
virtual void DoClientToScreen( int *x, int *y ) const;
virtual void DoScreenToClient( int *x, int *y ) const;
+#if wxUSE_MENUS
+ m_hMenu = NULL;
+#endif // wxUSE_MENUS
+
#if wxUSE_TOOLTIPS
m_hwndToolTip = 0;
#endif
#if wxUSE_TOOLTIPS
m_hwndToolTip = 0;
#endif
m_childrenDisabled = NULL;
m_frozenness = 0;
m_childrenDisabled = NULL;
m_frozenness = 0;
- // wxWnd
- m_hMenu = 0;
-
m_hWnd = 0;
m_xThumbSize = 0;
m_hWnd = 0;
m_xThumbSize = 0;
// background is not inherited beyond the windows which have their own
// fixed background such as top level windows and notebooks
// background is not inherited beyond the windows which have their own
// fixed background such as top level windows and notebooks
- if ( win->IsTopLevel() /* ProvidesBackground() */ )
+ if ( win->ProvidesBackground() )