X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..6e3e6c8efb7da8e096121af3b1dc67d46aad3c14:/include/wx/frame.h?ds=sidebyside diff --git a/include/wx/frame.h b/include/wx/frame.h index 15bbfd7c35..3c2c3888d8 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -19,11 +19,12 @@ #include "wx/toplevel.h" // the base class // the default names for various classs -extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[]; -extern WXDLLEXPORT_DATA(const wxChar) wxToolBarNameStr[]; +extern WXDLLEXPORT_DATA(const char) wxStatusLineNameStr[]; +extern WXDLLEXPORT_DATA(const char) wxToolBarNameStr[]; class WXDLLIMPEXP_FWD_CORE wxFrame; class WXDLLIMPEXP_FWD_CORE wxMenuBar; +class WXDLLIMPEXP_FWD_CORE wxMenuItem; class WXDLLIMPEXP_FWD_CORE wxStatusBar; class WXDLLIMPEXP_FWD_CORE wxToolBar; @@ -180,6 +181,11 @@ public: virtual void DoGiveHelp(const wxString& text, bool show); #endif + virtual bool IsClientAreaChild(const wxWindow *child) const + { + return !IsOneOfBars(child) && wxTopLevelWindow::IsClientAreaChild(child); + } + protected: // the frame main menu/status/tool bars // ------------------------------------ @@ -190,10 +196,6 @@ protected: // test whether this window makes part of the frame virtual bool IsOneOfBars(const wxWindow *win) const; - virtual bool IsClientAreaChild(const wxWindow *child) const - { - return !IsOneOfBars(child) && wxTopLevelWindow::IsClientAreaChild(child); - } #if wxUSE_MENUS // override to update menu bar position when the frame size changes