mirror of
https://github.com/reactos/reactos.git
synced 2025-04-29 10:39:07 +00:00
[PSDK] Sort out the QS_*** definitions. Add the Win7+ QS_TOUCH and QS_POINTER.
In particular, define the compound QS_MOUSE, QS_INPUT, QS_ALLEVENTS and QS_ALLINPUT flags based on the other elementary QS_*** flags, instead of having magic values for these.
This commit is contained in:
parent
48d1ecc4df
commit
d78a5b6dbf
1 changed files with 27 additions and 20 deletions
|
@ -865,29 +865,36 @@ extern "C" {
|
|||
#define DWLP_DLGPROC (DWLP_MSGRESULT + sizeof(LRESULT))
|
||||
#define DWLP_USER (DWLP_DLGPROC + sizeof(DLGPROC))
|
||||
|
||||
#define QS_KEY 1
|
||||
#define QS_MOUSEMOVE 2
|
||||
#define QS_MOUSEBUTTON 4
|
||||
#define QS_POSTMESSAGE 8
|
||||
#define QS_TIMER 16
|
||||
#define QS_PAINT 32
|
||||
#define QS_SENDMESSAGE 64
|
||||
#define QS_HOTKEY 128
|
||||
#define QS_ALLPOSTMESSAGE 256
|
||||
|
||||
#if (_WIN32_WINNT >= 0x0501)
|
||||
#define QS_ALLEVENTS 1215
|
||||
#define QS_ALLINPUT 1279
|
||||
#define QS_RAWINPUT 1024
|
||||
#else
|
||||
#define QS_ALLEVENTS 191
|
||||
#define QS_ALLINPUT 255
|
||||
#define QS_RAWINPUT 1024
|
||||
#endif
|
||||
#define QS_ALLPOSTMESSAGE 256
|
||||
#define QS_HOTKEY 128
|
||||
#if (_WIN32_WINNT >= 0x0501)
|
||||
#define QS_INPUT 1031
|
||||
#else
|
||||
#define QS_INPUT 7
|
||||
#if (_WIN32_WINNT >= 0x0602)
|
||||
#define QS_TOUCH 2048
|
||||
#define QS_POINTER 4096
|
||||
#endif
|
||||
#define QS_KEY 1
|
||||
#define QS_MOUSE 6
|
||||
#define QS_MOUSEBUTTON 4
|
||||
#define QS_MOUSEMOVE 2
|
||||
#define QS_PAINT 32
|
||||
#define QS_POSTMESSAGE 8
|
||||
#define QS_SENDMESSAGE 64
|
||||
#define QS_TIMER 16
|
||||
|
||||
#define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
|
||||
|
||||
#if (_WIN32_WINNT >= 0x0602)
|
||||
#define QS_INPUT (QS_KEY | QS_MOUSE | QS_RAWINPUT | QS_TOUCH | QS_POINTER)
|
||||
#elif (_WIN32_WINNT >= 0x0501)
|
||||
#define QS_INPUT (QS_KEY | QS_MOUSE | QS_RAWINPUT)
|
||||
#else
|
||||
#define QS_INPUT (QS_KEY | QS_MOUSE)
|
||||
#endif
|
||||
|
||||
#define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
|
||||
#define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
|
||||
|
||||
#define USER_TIMER_MAXIMUM 2147483647
|
||||
#define USER_TIMER_MINIMUM 10
|
||||
|
|
Loading…
Reference in a new issue