]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/private/timer.h
Fix generation of key events for non-alphabetic keys under Windows.
[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
KB
5// Created: 01/02/97
6// RCS-ID: $Id$
bbcdf8bc 7// Copyright: (c) Julian Smart
65571936 8// Licence: wxWindows licence
2bda0e17
KB
9/////////////////////////////////////////////////////////////////////////////
10
c2ca375c
VZ
11#ifndef _WX_MSW_PRIVATE_TIMER_H_
12#define _WX_MSW_PRIVATE_TIMER_H_
2bda0e17 13
a8ff046b
VZ
14#if wxUSE_TIMER
15
c2ca375c 16#include "wx/private/timer.h"
23d8a71f 17#include "wx/msw/wrapwin.h" // for WPARAM
c085e333 18
c2ca375c
VZ
19class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl
20{
03f38c58 21public:
b6ae7297 22 wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; };
03f38c58 23
bfbb0b4c 24 virtual bool Start(int milliseconds = -1, bool oneShot = false);
0470b1e6 25 virtual void Stop();
03f38c58 26
0470b1e6 27 virtual bool IsRunning() const { return m_id != 0; }
03f38c58 28
c085e333 29protected:
23d8a71f
VZ
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
491acfc7 32 WPARAM m_id;
2bda0e17
KB
33};
34
a8ff046b
VZ
35#endif // wxUSE_TIMER
36
c2ca375c 37#endif // _WX_TIMERH_