TKGetGestureInfo
4/8/2010
This function fills out a GESTUREINFO structure with details of the gesture that was passed to WM_GESTURE.
Syntax
BOOL TKGetGestureInfo(
HGESTUREINFO hGestureInfo,
PGESTUREINFO pGestureInfo
);
Parameters
- 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.
Return Value
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.
Remarks
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.
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.
}
Requirements
Header | Gesture.h |