git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32412
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxWindowMac::MacGetContentAreaInset( int &left , int &top , int &right , int &bottom )
{
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 )
{
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
{
// 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() ;
int ww, hh;
RgnHandle rgn = NewRgn() ;
wxPoint wxWindowMac::GetClientAreaOrigin() const
{
wxPoint wxWindowMac::GetClientAreaOrigin() const
{
- bool isCompositing = MacGetTopLevelWindow()->MacUsesCompositing() ;
RgnHandle rgn = NewRgn() ;
Rect content ;
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( ) );
}
DisposeRgn( rgn ) ;
return wxPoint( content.left + MacGetLeftBorderSize( ) , content.top + MacGetTopBorderSize( ) );
}