X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..6d9022fe3bb50a75b9b5eaf5cf32558e518ba310:/src/msw/timer.cpp?ds=sidebyside diff --git a/src/msw/timer.cpp b/src/msw/timer.cpp index e999fd6924..17f1c17552 100644 --- a/src/msw/timer.cpp +++ b/src/msw/timer.cpp @@ -82,11 +82,18 @@ bool wxTimer::Start(int milliseconds, bool oneShot) wxCHECK_MSG( m_milli > 0, FALSE, wxT("invalid value for timer timeour") ); wxTimerList.DeleteObject(this); + +#ifdef __WXMICROWIN__ + m_id = SetTimer(NULL, (UINT)(m_id ? m_id : 1), + (UINT)milliseconds, (TIMERPROC) wxTimerProc); +#else TIMERPROC wxTimerProcInst = (TIMERPROC) MakeProcInstance((FARPROC)wxTimerProc, wxGetInstance()); m_id = SetTimer(NULL, (UINT)(m_id ? m_id : 1), (UINT)milliseconds, wxTimerProcInst); +#endif + if ( m_id > 0 ) { wxTimerList.Append(m_id, this);