X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..3b49331b7441e091fc5997b830801d76a1243f28:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index 15bbfd7c35..2889bbecae 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -180,6 +180,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 +195,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