]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/private/timer.h
Added wxPropertyGridInterface::SetColumnProportion(); wxPG_SPLITTER_AUTO_CENTER windo...
[wxWidgets.git] / include / wx / msw / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/private/timer.h
3 // Purpose: wxTimer class
4 // Author: Julian Smart
5 // Created: 01/02/97
6 // RCS-ID: $Id$
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MSW_PRIVATE_TIMER_H_
12 #define _WX_MSW_PRIVATE_TIMER_H_
13
14 #if wxUSE_TIMER
15
16 #include "wx/private/timer.h"
17 #include "wx/msw/wrapwin.h" // for WPARAM
18
19 class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl
20 {
21 public:
22 wxMSWTimerImpl(wxTimer *timer);
23 virtual ~wxMSWTimerImpl();
24
25 virtual bool Start(int milliseconds = -1, bool oneShot = false);
26 virtual void Stop();
27
28 virtual bool IsRunning() const { return m_id != 0; }
29
30 protected:
31 // this must be 64 bit under Win64 as WPARAM (storing timer ids) is 64 bit
32 // there and so the ids may possibly not fit in 32 bits
33 WPARAM m_id;
34 };
35
36 #endif // wxUSE_TIMER
37
38 #endif // _WX_TIMERH_