Share via


TKGetWindowAutoGesture

4/8/2010

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.

Syntax

BOOL TKGetWindowAutoGesture(
    HWND hWnd, 
    LPWAGINFO lpAutoGestureInfo
);

Parameters

  • hWnd
    [in] The handle of the target window.
  • lpAutoGestureInfo
    [out] The pointer to the WAGINFO struct that is populated with the target window’s automatic gesture handling settings.

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 TKSetWindowAutoGesture or TKGetWindowAutoGesture.

Requirements

Header WindowAutoGesture.h

See Also

Other Resources

Using Gestures in Windows Mobile 6.5