mirror of
https://github.com/quantum5/MusicKeyboard.git
synced 2025-04-24 13:11:58 -04:00
Some version of MinGW doesn't seem to have Windows 7 constants
This commit is contained in:
parent
cca2afea69
commit
b0d5a0d8ff
|
@ -8,6 +8,14 @@
|
|||
#include <commctrl.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
#ifndef WM_TOUCH
|
||||
// Because MinGW needs it.
|
||||
#define TWF_WANTPALM 0x00000002
|
||||
#define WM_TOUCH 0x0240
|
||||
#define MICROSOFT_TABLETPENSERVICE_PROPERTY TEXT("MicrosoftTabletPenServiceProperty")
|
||||
#define TOUCH_COORD_TO_PIXEL(l) ((l) / 100)
|
||||
#endif
|
||||
|
||||
typedef BOOL (WINAPI *T_GetTouchInputInfo)(HTOUCHINPUT hTouchInput, UINT cInputs, PTOUCHINPUT pInputs, int cbSize);
|
||||
typedef BOOL (WINAPI *T_CloseTouchInputHandle)(HTOUCHINPUT hTouchInput);
|
||||
typedef BOOL (WINAPI *T_RegisterTouchWindow)(HWND hWnd, ULONG ulFlags);
|
||||
|
|
Loading…
Reference in a new issue