Correct the wxButton::Setlabel nonsense

Added wxFrame::SetClientSize


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-08-08 13:44:36 +00:00
parent b6af8d80dc
commit b593568eca
8 changed files with 36 additions and 6 deletions

View File

@@ -226,6 +226,20 @@ void wxFrame::GetClientSize( int *width, int *height ) const
};
};
void wxFrame::SetClientSize( int const width, int const height )
{
int h = height;
if (m_frameMenuBar) h += wxMENU_HEIGHT;
if (m_frameStatusBar) h += wxSTATUS_HEIGHT;
if (m_frameToolBar)
{
int y = 0;
m_frameToolBar->GetSize( NULL, &y );
h += y;
}
wxWindow::SetClientSize( width, h );
};
void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height )
{
// due to a bug in gtk, x,y are always 0