Share via


DisableGestures (Windows Embedded CE 6.0)

1/6/2010

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_PAN

    Pan gesture

    TGF_SCROLL

    Flick gesture

    TGF_HOLD

    Hold gesture

    TGF_SELECT

    Tap gesture

    TGF_DOUBLESELECT

    Double tap gesture

    • In addition, you can specify custom registered gestures by ORing ullFlags with the following macro: GID_TO_TGF(custom_gesture_id).
  • 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, false. To retrieve extended error information, call GetLastError.

Remarks

To enable gestures, use the EnableGestures function.

Requirements

Header pwinuser.h
Library TouchGesture.lib
sysgen SYSGEN_TOUCHGESTURE

See Also

Other Resources

Gesture Functions