adding protected inquiry function whether a child window belongs to the 'client' or the 'non-client' area, examples for the latter are toolbar, scrollbars etc

adding another cached clip rect for the real client area


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-04-01 07:17:24 +00:00
parent 78df41df75
commit e905b636b6
2 changed files with 77 additions and 48 deletions

View File

@@ -251,6 +251,21 @@ void wxFrame::DoGetClientSize(int *x, int *y) const
#endif // wxUSE_TOOLBAR
}
bool wxFrame::MacIsChildOfClientArea( const wxWindow* child ) const
{
#if wxUSE_STATUSBAR
if ( child == GetStatusBar() )
return false ;
#endif // wxUSE_STATUSBAR
#if wxUSE_TOOLBAR
if ( child == GetToolBar() )
return false ;
#endif // wxUSE_TOOLBAR
return wxFrameBase::MacIsChildOfClientArea( child ) ;
}
void wxFrame::DoSetClientSize(int clientwidth, int clientheight)
{
int currentclientwidth , currentclientheight ;