DisableGestures (Compact 2013)
3/28/2014
This function disables one or more touch gestures for a window or application process.
Syntax
BOOL DisableGestures(
HWND hwnd,
ULONGLONG ullFlags,
UINT uScope
);
Parameters
- hwnd
[in] Specifies the window to disable gestures for. If you set uScope to TGF_SCOPE_PROCESS, the function ignores this parameter.
ullFlags
[in] Specifies the gestures to disable. 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)
- In addition, you can specify custom registered gestures by using the logical OR ullFlags with the following macro:
- uScope
[in] Specifies the scope of this function. Set to TGF_SCOPE_WINDOW to disable gestures for the window indicated by hwnd. Set to TGF_SCOPE_PROCESS to disable gestures for the application process.
Return Value
Returns true if function succeeds; otherwise, returns false. To retrieve extended error information, call GetLastError.
Remarks
To enable gestures, use the EnableGestures function.
Requirements
Header |
winuser.h |
Library |
TouchGesture.lib |
sysgen |
SYSGEN_TOUCHGESTURE |