1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/private/timer.h
3 // Purpose: wxTimer class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MSW_PRIVATE_TIMER_H_
12 #define _WX_MSW_PRIVATE_TIMER_H_
16 #include "wx/private/timer.h"
17 #include "wx/msw/wrapwin.h" // for WPARAM
19 class WXDLLIMPEXP_BASE wxMSWTimerImpl
: public wxTimerImpl
22 wxMSWTimerImpl(wxTimer
*timer
) : wxTimerImpl(timer
) { m_id
= 0; };
24 virtual bool Start(int milliseconds
= -1, bool oneShot
= false);
27 virtual bool IsRunning() const { return m_id
!= 0; }
30 // this must be 64 bit under Win64 as WPARAM (storing timer ids) is 64 bit
31 // there and so the ids may possibly not fit in 32 bits