void wxWindowMac::MacGetContentAreaInset( int &left , int &top , int &right , int &bottom )
{
- bool isCompositing = MacGetTopLevelWindow()->MacUsesCompositing() ;
-
RgnHandle rgn = NewRgn() ;
if ( m_peer->GetRegion( kControlContentMetaPart , rgn ) == noErr )
{
// Get size *available for subwindows* i.e. excluding menu bar etc.
void wxWindowMac::DoGetClientSize(int *x, int *y) const
{
- bool isCompositing = MacGetTopLevelWindow()->MacUsesCompositing() ;
int ww, hh;
RgnHandle rgn = NewRgn() ;
wxPoint wxWindowMac::GetClientAreaOrigin() const
{
- bool isCompositing = MacGetTopLevelWindow()->MacUsesCompositing() ;
RgnHandle rgn = NewRgn() ;
Rect content ;
- m_peer->GetRegion( kControlContentMetaPart , rgn ) ;
- GetRegionBounds( rgn , &content ) ;
+ if ( m_peer->GetRegion( kControlContentMetaPart , rgn ) )
+ {
+ GetRegionBounds( rgn , &content ) ;
+ }
+ else
+ {
+ content.left = content.top = 0 ;
+ }
DisposeRgn( rgn ) ;
return wxPoint( content.left + MacGetLeftBorderSize( ) , content.top + MacGetTopBorderSize( ) );
}