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