Add GetOwner accessor and fix wxRTTI inheritance for wxTimer. Set the
timer as the event object in wxTimerEvents. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,6 +57,7 @@ void wxTimerBase::Notify()
|
||||
wxCHECK_RET( m_owner, _T("wxTimer::Notify() should be overridden.") );
|
||||
|
||||
wxTimerEvent event(m_idTimer, m_milli);
|
||||
event.SetEventObject(this);
|
||||
(void)m_owner->ProcessEvent(event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user