]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/private/timer.h
Complete wxEVT_MENU_{OPEN,CLOSE} implementation in wxMSW and wxOSX.
[wxWidgets.git] / include / wx / os2 / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/private/timer.h
3 // Purpose: wxTimer class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/17/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_OS2_PRIVATE_TIMER_H_
13 #define _WX_OS2_PRIVATE_TIMER_H_
14
15 #include "wx/private/timer.h"
16
17 class WXDLLIMPEXP_CORE wxOS2TimerImpl: public wxTimerImpl
18 {
19 friend void wxProcessTimer(wxOS2TimerImpl& timer);
20
21 public:
22 wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_ulId = 0; }
23
24 virtual bool Start(int nMilliseconds = -1, bool bOneShot = FALSE);
25 virtual void Stop(void);
26
27 virtual bool IsRunning(void) const { return m_ulId != 0L; }
28
29 protected:
30 ULONG m_ulId;
31 HAB m_Hab;
32 };
33
34 extern ULONG wxTimerProc( HWND WXUNUSED(hwnd)
35 ,ULONG
36 ,int nIdTimer
37 ,ULONG
38 );
39 #endif // _WX_OS2_PRIVATE_TIMER_H_