]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/private/timer.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / msw / private / timer.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
c2ca375c 2// Name: wx/msw/private/timer.h
2bda0e17
KB
3// Purpose: wxTimer class
4// Author: Julian Smart
2bda0e17 5// Created: 01/02/97
bbcdf8bc 6// Copyright: (c) Julian Smart
65571936 7// Licence: wxWindows licence
2bda0e17
KB
8/////////////////////////////////////////////////////////////////////////////
9
c2ca375c
VZ
10#ifndef _WX_MSW_PRIVATE_TIMER_H_
11#define _WX_MSW_PRIVATE_TIMER_H_
2bda0e17 12
a8ff046b
VZ
13#if wxUSE_TIMER
14
c2ca375c 15#include "wx/private/timer.h"
23d8a71f 16#include "wx/msw/wrapwin.h" // for WPARAM
c085e333 17
c2ca375c
VZ
18class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl
19{
03f38c58 20public:
6dd0883d 21 wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; }
03f38c58 22
bfbb0b4c 23 virtual bool Start(int milliseconds = -1, bool oneShot = false);
0470b1e6 24 virtual void Stop();
03f38c58 25
0470b1e6 26 virtual bool IsRunning() const { return m_id != 0; }
03f38c58 27
c085e333 28protected:
23d8a71f
VZ
29 // this must be 64 bit under Win64 as WPARAM (storing timer ids) is 64 bit
30 // there and so the ids may possibly not fit in 32 bits
491acfc7 31 WPARAM m_id;
2bda0e17
KB
32};
33
a8ff046b
VZ
34#endif // wxUSE_TIMER
35
c2ca375c 36#endif // _WX_TIMERH_