Partager via


Gesture (Windows Embedded CE 6.0)

1/6/2010

The Gesture function posts gesture events to a message queue asynchronously. You can use this function in a custom gesture recognizer to post gesture events.

Syntax

BOOL WINAPI Gesture(
    HWND hwnd,
    const GESTUREINFO* pGestureInfo,
        const BYTE* pExtraArguments
);

Parameters

  • hwnd
    [in] Handle of the window that the function sends the gesture event to.

    If you set hwnd to NULL, the function sends the gesture event to the window specified by the return value of GetForegroundWindow.

  • pGestureInfo
    [in] Points to a GESTUREINFO structure that you must fill with information about the gesture. In the GESTUREINFO structure, you must set the cbSize field to sizeof(GESTUREINFO).
  • pExtraArguments
    [in] [bcount(pGestureInfo->cbExtraArguments)] A pointer to extra information about the gesture that does not fit in the GESTUREINFO structure.

Return Value

Returns true if function succeeds; otherwise, false. To retrieve extended error information, call GetLastError.

Requirements

Header pwinuser.h
Library TouchGesture.lib
sysgen SYSGEN_TOUCHGESTURE

See Also

Other Resources

Gesture Functions