X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ed0fac8a854bf53ea942ba7d759519f0c681763..dfdd617b4b213033453944e19902a6f86b99b795:/include/wx/os2/timer.h diff --git a/include/wx/os2/timer.h b/include/wx/os2/timer.h index c7680e50b1..b4f8a2fc51 100644 --- a/include/wx/os2/timer.h +++ b/include/wx/os2/timer.h @@ -19,7 +19,14 @@ class WXDLLEXPORT wxTimer: public wxTimerBase friend void wxProcessTimer(wxTimer& timer); public: - wxTimer(); + wxTimer() { Init(); } + wxTimer( wxEvtHandler* pOwner + ,int nId = -1 + ) + : wxTimerBase( pOwner + ,nId + ) + { Init(); } ~wxTimer(); virtual bool Start( int nMilliseconds = -1 @@ -30,6 +37,8 @@ public: inline virtual bool IsRunning(void) const { return m_ulId != 0L; } protected: + void Init(void); + ULONG m_ulId; HAB m_Hab; @@ -37,5 +46,10 @@ private: DECLARE_ABSTRACT_CLASS(wxTimer) }; +extern ULONG wxTimerProc( HWND WXUNUSED(hwnd) + ,ULONG + ,int nIdTimer + ,ULONG + ); #endif // _WX_TIMER_H_