replacing OSX only carbon calls by classic ones for CFM build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-05-01 06:34:28 +00:00
parent 57ab966bab
commit 1d3216f76d

View File

@@ -1652,10 +1652,17 @@ bool wxWindowMac::Enable(bool enable)
return FALSE;
bool former = MacIsReallyEnabled() ;
#if TARGET_API_MAC_OSX
if ( enable )
EnableControl( (ControlRef) m_macControl ) ;
else
DisableControl( (ControlRef) m_macControl ) ;
#else
if ( enable )
ActivateControl( (ControlRef) m_macControl ) ;
else
DeactivateControl( (ControlRef) m_macControl ) ;
#endif
if ( former != MacIsReallyEnabled() )
MacPropagateEnabledStateChanged() ;
@@ -1757,7 +1764,11 @@ bool wxWindowMac::MacIsReallyShown()
bool wxWindowMac::MacIsReallyEnabled()
{
#if TARGET_API_MAC_OSX
return IsControlEnabled( (ControlRef) m_macControl ) ;
#else
return IsControlActive( (ControlRef) m_macControl ) ;
#endif
}
bool wxWindowMac::MacIsReallyHilited()