Share via


GetGestureInfo (Windows Embedded CE 6.0)

1/6/2010

This function populates a GESTUREINFO structure with information about the gesture that the gesture engine passes in the lParam of WM_GESTURE.

Syntax

BOOL GetGestureInfo(
        HGESTUREINFO hGestureInfo
        PGESTUREINFO pGestureInfo
);

Parameters

  • hGestureCmdInfo
    [in] Handle to a GESTUREINFO structure. This handle is contained in the lParam of the window message.
  • pGestureCmdInfo
    [out] Pointer to a GESTUREINFO structure that the function populates with the gesture information. You must set pGestureCmdInfo->cbSize to sizeof(GESTUREINFO) before calling this function.

Return Value

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

Remarks

The following code sample shows how you can use GetGestureInfo to get the information about a gesture after receiving a WM_GESTURE message.

Case WM_GESTURE:
{
  GESTUREINFO gi;
  gi.cbSize = sizeof(GESTUREINFO);
  if (GetGestureInfo(reinterpret_cast<HGESTUREINFO>(lParam), &gi))
  {
    // Handle gesture indicated by gi.dwCommand
  }
  else
  {
    // Error handling.
  }

Requirements

Header pwinuser.h
Library TouchGesture.lib
sysgen SYSGEN_TOUCHGESTURE

See Also

Other Resources

Gesture Functions