wxChoice::~wxChoice()
{
// DeleteMenu( m_macPopUpMenuId ) ;
- DisposeMenu( m_macPopUpMenuHandle ) ;
+ // DisposeMenu( m_macPopUpMenuHandle ) ;
}
bool wxChoice::Create(wxWindow *parent, wxWindowID id,
// init
+#if !TARGET_CARBON
+#define GetControlOwner( control ) (**control).contrlOwner
+#endif
+
static bool sUMAHasAppearance = false ;
static long sUMAAppearanceVersion = 0 ;
extern int gAGABackgroundColor ;
void UMAActivateControl( ControlHandle inControl )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMADrawControl( ControlHandle inControl )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMAMoveControl( ControlHandle inControl , short x , short y )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMASizeControl( ControlHandle inControl , short x , short y )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMADeactivateControl( ControlHandle inControl )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMASetThemeWindowBackground (WindowRef inWindow,
void UMAHiliteControl (ControlHandle theControl,
ControlPartCode hiliteState)
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(theControl) , updateRgn ) ;
if ( UMAHasAppearance() )
{
::HiliteControl( theControl , hiliteState ) ;
{
::HiliteControl( theControl , hiliteState ) ;
}
+ InvalRgn( updateRgn ) ;
}
void UMAShowControl (ControlHandle theControl)
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(theControl) , updateRgn ) ;
if ( UMAHasAppearance() )
{
::ShowControl( theControl ) ;
{
::ShowControl( theControl ) ;
}
+ InvalRgn( updateRgn ) ;
}
void UMAUpdateControls( WindowPtr inWindow , RgnHandle inRgn )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( inWindow , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
OSErr UMAGetRootControl( WindowPtr inWindow , ControlHandle *outControl )
wxChoice::~wxChoice()
{
// DeleteMenu( m_macPopUpMenuId ) ;
- DisposeMenu( m_macPopUpMenuHandle ) ;
+ // DisposeMenu( m_macPopUpMenuHandle ) ;
}
bool wxChoice::Create(wxWindow *parent, wxWindowID id,
// init
+#if !TARGET_CARBON
+#define GetControlOwner( control ) (**control).contrlOwner
+#endif
+
static bool sUMAHasAppearance = false ;
static long sUMAAppearanceVersion = 0 ;
extern int gAGABackgroundColor ;
void UMAActivateControl( ControlHandle inControl )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMADrawControl( ControlHandle inControl )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMAMoveControl( ControlHandle inControl , short x , short y )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMASizeControl( ControlHandle inControl , short x , short y )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMADeactivateControl( ControlHandle inControl )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(inControl) , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
void UMASetThemeWindowBackground (WindowRef inWindow,
void UMAHiliteControl (ControlHandle theControl,
ControlPartCode hiliteState)
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(theControl) , updateRgn ) ;
if ( UMAHasAppearance() )
{
::HiliteControl( theControl , hiliteState ) ;
{
::HiliteControl( theControl , hiliteState ) ;
}
+ InvalRgn( updateRgn ) ;
}
void UMAShowControl (ControlHandle theControl)
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( GetControlOwner(theControl) , updateRgn ) ;
if ( UMAHasAppearance() )
{
::ShowControl( theControl ) ;
{
::ShowControl( theControl ) ;
}
+ InvalRgn( updateRgn ) ;
}
void UMAUpdateControls( WindowPtr inWindow , RgnHandle inRgn )
{
+ RgnHandle updateRgn = NewRgn() ;
+ GetWindowUpdateRgn( inWindow , updateRgn ) ;
#if UMA_USE_APPEARANCE
if ( UMAHasAppearance() )
{
{
}
#endif
+ InvalRgn( updateRgn ) ;
}
OSErr UMAGetRootControl( WindowPtr inWindow , ControlHandle *outControl )