TKGetGestureInfo

Windows Mobile 6.5
4/8/2010

This function fills out a GESTUREINFO structure with details of the gesture that was passed to WM_GESTURE.


BOOL TKGetGestureInfo(
        HGESTUREINFO hGestureInfo,
        PGESTUREINFO pGestureInfo
);

hGestureInfo

[in] Handle to a GESTUREINFO structure.

pGestureInfo

[out] Pointer to a GESTUREINFO structure that will be filled out with the gesture details based on the information passed in the WM_GESTURE message. The cbSize field of the structure must be correctly initialized before calling this function.

Returns TRUE if the function succeeds.

If the function fails, the return value is FALSE and the application can use GetLastError to retrieve more specific error information.

Depending on the gesture ID, an application can choose to interpret the parameters of a WM_GESTURE message directly, or it can pass them to GetGestureInfo, as shown in the following code sample.

GESTUREINFO gi;
memset(&gi, 0, sizeof(gi));
gi.cbSize = sizeof(GESTUREINFO);
if (TKGetGestureInfo((HGESTUREINFO)lParam, &gi))
{
    // Handle gesture indicated by wParam
}
else
{
    // Error handling.
}

HeaderGesture.h

Community Additions

Show: