wxMacControlActionUPP = NewControlDefUPP( wxMacControlDefintion ) ;
}
#if TARGET_CARBON
+/*
+ only working under classic carbon
m_macControlAction = *(**(ControlHandle)m_macControl).contrlDefProc ;
(**(ControlHandle)m_macControl).contrlDefProc = (Handle) &wxMacControlActionUPP ;
+*/
#else
m_macControlAction = *(**(ControlHandle)m_macControl).contrlDefProc ;
void wxControl::OnPaint(wxPaintEvent& event)
{
- if ( IsKindOf( CLASSINFO( wxBitmapButton ) ) )
- {
- int i ;
- i = 0 ;
- }
if ( (ControlHandle) m_macControl )
{
wxPaintDC dc(this) ;