Partager via


EnableGestures (Windows Embedded CE 6.0)

1/6/2010

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_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 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, false. To retrieve extended error information call GetLastError.

Remarks

To disable gestures, you can use the DisableGestures function.

Requirements

Header pwinuser.h
Library TouchGesture.lib
sysgen SYSGEN_TOUCHGESTURE

See Also

Other Resources

Gesture Functions