X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ed0fac8a854bf53ea942ba7d759519f0c681763..ce4b7808ca940be201422a066de141ca12f13863:/include/wx/os2/timer.h?ds=sidebyside diff --git a/include/wx/os2/timer.h b/include/wx/os2/timer.h index c7680e50b1..fb7bddc775 100644 --- a/include/wx/os2/timer.h +++ b/include/wx/os2/timer.h @@ -19,17 +19,28 @@ class WXDLLEXPORT wxTimer: public wxTimerBase friend void wxProcessTimer(wxTimer& timer); public: - wxTimer(); - ~wxTimer(); - + wxTimer() { Init(); } + wxTimer( wxEvtHandler* pOwner + ,int nId = -1 + ) + : wxTimerBase( pOwner + ,nId + ) + { Init(); } + virtual ~wxTimer(); + + virtual void Notify(void); virtual bool Start( int nMilliseconds = -1 ,bool bOneShot = FALSE ); virtual void Stop(void); inline virtual bool IsRunning(void) const { return m_ulId != 0L; } + inline int GetTimerId(void) const { return m_idTimer; } protected: + void Init(void); + ULONG m_ulId; HAB m_Hab; @@ -37,5 +48,10 @@ private: DECLARE_ABSTRACT_CLASS(wxTimer) }; +extern ULONG wxTimerProc( HWND WXUNUSED(hwnd) + ,ULONG + ,int nIdTimer + ,ULONG + ); #endif // _WX_TIMER_H_