+*/
+ int x = 0 , y = 0;
+ wxWindow *parent = GetParent() ;
+ parent->MacWindowToRootWindow( &x,&y ) ;
+ RgnHandle clrgn = NewRgn() ;
+ RgnHandle insidergn = NewRgn() ;
+ wxSize size = parent->GetSize() ;
+ SetRectRgn( insidergn , parent->MacGetLeftBorderSize() , parent->MacGetTopBorderSize() ,
+ size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(),
+ size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ;
+
+ CopyRgn( (RgnHandle) parent->MacGetVisibleRegion(false).GetWXHRGN() , clrgn ) ;
+ SectRgn( clrgn , insidergn , clrgn ) ;
+ OffsetRgn( clrgn , x , y ) ;
+ SetClip( clrgn ) ;
+ DisposeRgn( clrgn ) ;
+ DisposeRgn( insidergn ) ;
+