UMADrawControl is not to be used anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -543,24 +543,6 @@ void UMAActivateControl( ControlRef inControl )
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void UMADrawControl( ControlRef inControl )
|
|
||||||
{
|
|
||||||
#if TARGET_API_MAC_CARBON
|
|
||||||
::Draw1Control( inControl );
|
|
||||||
#else
|
|
||||||
WindowRef theWindow = GetControlOwner(inControl) ;
|
|
||||||
wxMacPortStateHelper help( (GrafPtr) GetWindowPort(theWindow) ) ;
|
|
||||||
RgnHandle updateRgn = NewRgn() ;
|
|
||||||
GetWindowUpdateRgn( theWindow , updateRgn ) ;
|
|
||||||
Point zero = { 0 , 0 } ;
|
|
||||||
LocalToGlobal( &zero ) ;
|
|
||||||
OffsetRgn( updateRgn , -zero.h , -zero.v ) ;
|
|
||||||
::DrawControlInCurrentPort( inControl ) ;
|
|
||||||
InvalWindowRgn( theWindow, updateRgn) ;
|
|
||||||
DisposeRgn( updateRgn ) ;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void UMAMoveControl( ControlRef inControl , short x , short y )
|
void UMAMoveControl( ControlRef inControl , short x , short y )
|
||||||
{
|
{
|
||||||
#if !TARGET_API_MAC_OSX
|
#if !TARGET_API_MAC_OSX
|
||||||
|
Reference in New Issue
Block a user