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:
@@ -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 ;
|
||||
|
Reference in New Issue
Block a user