]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/private/timer.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / os2 / private / timer.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
c2ca375c 2// Name: wx/os2/private/timer.h
0e320a79 3// Purpose: wxTimer class
d90895ac 4// Author: David Webster
0e320a79 5// Modified by:
d90895ac 6// Created: 10/17/99
d90895ac 7// Copyright: (c) David Webster
65571936 8// Licence: wxWindows licence
0e320a79
DW
9/////////////////////////////////////////////////////////////////////////////
10
55bfbcb9
VZ
11#ifndef _WX_OS2_PRIVATE_TIMER_H_
12#define _WX_OS2_PRIVATE_TIMER_H_
0e320a79 13
55bfbcb9 14#include "wx/private/timer.h"
0e320a79 15
53a2db12 16class WXDLLIMPEXP_CORE wxOS2TimerImpl: public wxTimerImpl
0e320a79 17{
c2ca375c 18friend void wxProcessTimer(wxOS2TimerImpl& timer);
d90895ac 19
0e320a79 20public:
55bfbcb9 21 wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_ulId = 0; }
0e320a79 22
55bfbcb9 23 virtual bool Start(int nMilliseconds = -1, bool bOneShot = FALSE);
9ed0fac8 24 virtual void Stop(void);
0e320a79 25
55bfbcb9 26 virtual bool IsRunning(void) const { return m_ulId != 0L; }
0e320a79
DW
27
28protected:
9ed0fac8
DW
29 ULONG m_ulId;
30 HAB m_Hab;
0e320a79
DW
31};
32
b9cf5e6d
DW
33extern ULONG wxTimerProc( HWND WXUNUSED(hwnd)
34 ,ULONG
35 ,int nIdTimer
36 ,ULONG
37 );
55bfbcb9 38#endif // _WX_OS2_PRIVATE_TIMER_H_