return rval;
}
-wxControl::~wxControl()
-{
- m_isBeingDeleted = true;
-}
-
bool wxControl::ProcessCommand( wxCommandEvent &event )
{
// Tries:
void wxControl::OnKeyDown( wxKeyEvent &WXUNUSED(event) )
{
- if ( m_peer == NULL || !m_peer->IsOk() )
+ if ( GetPeer() == NULL || !GetPeer()->IsOk() )
return;
#if wxOSX_USE_CARBON
GetEventParameter( (EventRef)wxTheApp->MacGetCurrentEvent(), kEventParamKeyMacCharCodes, typeChar, NULL, sizeof(char), NULL, &charCode );
GetEventParameter( (EventRef)wxTheApp->MacGetCurrentEvent(), kEventParamKeyModifiers, typeUInt32, NULL, sizeof(UInt32), NULL, &modifiers );
- m_peer->HandleKey( keyCode, charCode, modifiers );
+ GetPeer()->HandleKey( keyCode, charCode, modifiers );
#else
// TODO
#endif