git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32380
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Rect* UMAGetControlBoundsInWindowCoords(ControlRef theControl, Rect *bounds)
{
Rect* UMAGetControlBoundsInWindowCoords(ControlRef theControl, Rect *bounds)
{
- wxWindow* win = wxFindControlFromMacControl( theControl ) ;
+// wxWindow* win = wxFindControlFromMacControl( theControl ) ;
GetControlBounds( theControl , bounds ) ;
#if TARGET_API_MAC_OSX
WindowRef tlwref = GetControlOwner( theControl ) ;
GetControlBounds( theControl , bounds ) ;
#if TARGET_API_MAC_OSX
WindowRef tlwref = GetControlOwner( theControl ) ;
- wxTopLevelWindowMac* tlwwx = wxFindWinFromMacWindow( tlwref ) ;
+ wxWindow* tlwwx = (wxWindow*) wxFindWinFromMacWindow( tlwref ) ;
ControlRef rootControl = tlwwx->GetPeer()->GetControlRef() ;
HIPoint hiPoint = CGPointMake( 0 , 0 ) ;
HIViewConvertPoint( &hiPoint , HIViewGetSuperview(theControl) , rootControl ) ;
ControlRef rootControl = tlwwx->GetPeer()->GetControlRef() ;
HIPoint hiPoint = CGPointMake( 0 , 0 ) ;
HIViewConvertPoint( &hiPoint , HIViewGetSuperview(theControl) , rootControl ) ;
- OffsetRect( bounds , hiPoint.x , hiPoint.y ) ;
+ OffsetRect( bounds , (short) (hiPoint.x) , (short) (hiPoint.y) ) ;