次の方法で共有


SetWindowAutoGesture (Windows Embedded CE 6.0)

1/6/2010

This function sets the auto gesture configuration settings for a window. You can use this function to enable or disable windows automatic gesture support for standard Win32 scrollable windows.

Syntax

BOOL SetWindowAutoGesture(
    HWND hWnd, 
    LPWAGINFO lpAutoGestureInfo
);

Parameters

Term

Definition

hWnd

[in] Handle of the target window.

lpAutoGestureInfo

[in] Pointer to the WAGINFO structure that contains the new automatic gesture handling settings for the target window.

Return Value

Returns true if function succeeds; otherwise, false. To retrieve extended error information call GetLastError.

Remarks

You must set the WS_HSCROLL or WS_VSCROLL scroll styles for the target window before you can use SetWindowAutoGesture or GetWindowAutoGesture.

You must include WAGIF_OWNERANIMATE in the dwflags member of lpAutoGestureInfo. Otherwise SetWindowAutoGesture will return false, and GetLastError will return E_INVALIDARG.

Requirements

Header pwinuser.h
sysgen SYSGEN_GESTUREANIMATION

See Also

Other Resources

WindowAutoGesture Functions