Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

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

Syntax

BOOL TKGetGestureInfo(
		HGESTUREINFO 
hGestureInfo,
		PGESTUREINFO 
pGestureInfo
);

Parameters

hGestureInfo

[in] Handle to a GESTUREINFOstructure.

pGestureInfo

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

Return Value

Returns TRUE if the function succeeds.

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

Remarks

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

Sample

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

Requirements

Header Gesture.h

See Also