summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
23645bf)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11665
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
protected:
void OnSize(wxSizeEvent& event);
protected:
void OnSize(wxSizeEvent& event);
+ virtual void DoGetClientSize(int *width, int *height) const;
+ virtual void DoSetClientSize(int width, int height);
+
#if wxUSE_MENUS
// override to update menu bar position when the frame size changes
virtual void PositionMenuBar();
#if wxUSE_MENUS
// override to update menu bar position when the frame size changes
virtual void PositionMenuBar();
+void wxFrame::DoGetClientSize(int *width, int *height) const
+{
+ wxFrameBase::DoGetClientSize(width, height);
+#if wxUSE_MENUS
+ if ( m_frameMenuBar && height )
+ {
+ (*height) -= m_frameMenuBar->GetSize().y;
+ }
+#endif // wxUSE_MENUS
+}
+
+void wxFrame::DoSetClientSize(int width, int height)
+{
+#if wxUSE_MENUS
+ if ( m_frameMenuBar )
+ {
+ height += m_frameMenuBar->GetSize().y;
+ }
+#endif // wxUSE_MENUS
+ wxFrameBase::DoSetClientSize(width, height);
+}
+
bool wxFrame::Enable(bool enable)
{
if (!wxFrameBase::Enable(enable))
bool wxFrame::Enable(bool enable)
{
if (!wxFrameBase::Enable(enable))