Windows Mobile 6.5

This function returns the current 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.

BOOL TKGetWindowAutoGesture(
    HWND hWnd, 
    LPWAGINFO lpAutoGestureInfo


[in] The handle of the target window.


[out] The pointer to the WAGINFO struct that is populated with the target window’s automatic gesture handling settings.

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

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