+wxSize wxFrame::GetMinSize() const
+{
+ wxSize size = wxFrameBase::GetMinSize();
+
+#if wxUSE_MENUS
+ if ( m_frameMenuBar )
+ {
+ const wxSize sizeMenu = m_frameMenuBar->GetBestSize();
+ if ( sizeMenu.x > size.x )
+ size.x = sizeMenu.x;
+ size.y += sizeMenu.y;
+ }
+#endif // wxUSE_MENUS
+
+#if wxUSE_TOOLBAR
+ if ( m_frameToolBar )
+ {
+ size.y += m_frameToolBar->GetSize().y;
+ }
+#endif // wxUSE_TOOLBAR
+
+#if wxUSE_STATUSBAR
+ if ( m_frameStatusBar )
+ {
+ size.y += m_frameStatusBar->GetSize().y;
+ }
+#endif // wxUSE_STATUSBAR
+
+ return size;
+}
+