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 specifies the Window Auto Gesture configuration settings for the provided window handle. Window Auto Gesture enables the content in a window to scroll automatically in response to flick and pan gestures.

To automatically handle gesture scrolling, WS_VSCROLL or WS_HSCROLL (or both) styles must be included in the target window with scroll ranges that are set correctly.

Syntax

BOOL TKSetWindowAutoGesture(
	HWND 
hWnd, 
	LPWAGINFO 
lpAutoGestureInfo
);

Parameters

hWnd

[in] The handle of the target window.

lpAutoGestureInfo

[in] A pointer to the WAGINFOstruct that contains the new automatic gesture handling settings for the target window.

Return Value

Returns TRUE if successful, or FALSE in the event of an error. To get extended error information, call GetLastError.

Remarks

The scroll styles for the target window must be set before you can use TKSetWindowAutoGestureor TKGetWindowAutoGesture.

You must include WAGIF_OWNERANIMATE in lpAutoGestureInfo's dwflags member.

Requirements

Header WindowAutoGesture.h

See Also