-void wxMDIParentFrame::GtkOnSize( int x, int y, int width, int height )
-{
- wxFrame::GtkOnSize( x, y, width, height );
-
- if (m_mdiMenuBar)
- {
- int x = 0;
- int y = 0;
- GetClientSize( &x, &y );
- m_mdiMenuBar->SetSize( 1, 1, x-2, 26 );
- }
-};
-
-void wxMDIParentFrame::SetMDIMenuBar( wxMenuBar *menu_bar )
-{
- if (m_mdiMenuBar) m_mdiMenuBar->Show( FALSE );
- m_mdiMenuBar = menu_bar;
- if (m_mdiMenuBar)
- {
- int x = 0;
- int y = 0;
- GetClientSize( &x, &y );
- m_mdiMenuBar->SetSize( 1, 1, x-2, 26 );
- m_mdiMenuBar->Show( TRUE );
- }
-};
-
-void wxMDIParentFrame::GetClientSize(int *width, int *height ) const
-{
- wxFrame::GetClientSize( width, height );
-};