EnableGestures (Compact 2013)
3/28/2014
This function enables one or more touch gestures for a window or application process.
Syntax
BOOL EnableGestures(
HWND hwnd,
ULONGLONG ullFlags,
UINT uScope
);
Parameters
- hwnd
[in] Specifies the window to enable gestures for. If you set uScope to TGF_SCOPE_PROCESS, the function ignores this parameter.
ullFlags
[in] Specifies the gestures to enable. The following flags are supported for the core default gestures.Flag
Description
- TGF_GID_PAN
Pan gesture
- TGF_GID_SCROLL
Flick gesture
- TGF_GID_HOLD
Hold gesture
- TGF_GID_SELECT
Tap gesture
TGF_GID_DOUBLESELECT
Double tap gesture
TGF_GID_DIRECTMANIPULATION
Direct manipulation of objects on the screen
TGF_GID_ALL
All registered gestures
- In addition, you can specify custom registered gestures by using the logical OR ullFlags with the following macro:
GID_TO_TGF(
custom_gesture_id)
- TGF_GID_PAN
- uScope
[in] Specifies the scope of this function. Set to TGF_SCOPE_WINDOW to enable gestures for the window indicated by hwnd. Set to TGF_SCOPE_PROCESS to enable gestures for the application process.
Return Value
Returns true if function succeeds; otherwise, returns false. To retrieve extended error information call GetLastError.
Remarks
To disable gestures, you can use the DisableGestures function.
Requirements
Header |
winuser.h |
Library |
TouchGesture.lib |
sysgen |
SYSGEN_TOUCHGESTURE |