+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
+
+#if wxUSE_STATUSBAR
+ if ( m_frameStatusBar && height )
+ {
+ (*height) -= m_frameStatusBar->GetSize().y;
+ }
+#endif // wxUSE_STATUSBAR
+}
+
+void wxFrame::DoSetClientSize(int width, int height)
+{
+#if wxUSE_MENUS
+ if ( m_frameMenuBar )
+ {
+ height += m_frameMenuBar->GetSize().y;
+ }
+#endif // wxUSE_MENUS
+
+#if wxUSE_STATUSBAR
+ if ( m_frameStatusBar )
+ {
+ height += m_frameStatusBar->GetSize().y;
+ }
+#endif // wxUSE_STATUSBAR
+
+ wxFrameBase::DoSetClientSize(width, height);
+}
+
+bool wxFrame::Enable(bool enable)
+{
+ if (!wxFrameBase::Enable(enable))
+ return FALSE;
+#ifdef __WXMICROWIN__
+ if (m_frameMenuBar)
+ m_frameMenuBar->Enable(enable);
+#endif
+ return TRUE;
+}