GetGestureConfig function
2013-05-04 13:46
274 查看
Retrieves the configuration for which Windows Touch gesture messages are sent from a window.
dwReserved [in]This value is reserved and must be set to 0.
dwFlags [in]A gesture command flag value indicating options for retrieving the gesture configuration. See Remarks for additional information and supported values.
pcIDs [in]The size, in number of gesture configuration structures, that is in the pGestureConfig buffer.
pGestureConfig [in, out]An array of gesture configuration structures that specify the gesture configuration.
cbSize [in]The size of the gesture configuration (GESTURECONFIG) structure.
If the function fails, the return value is zero. To get extended error information, use the GetLastError function.
The following table lists the gesture configuration values:
Syntax
BOOL WINAPI GetGestureConfig( _In_ HWND hwnd, _In_ DWORD dwReserved, _In_ DWORD dwFlags, _In_ PUINT pcIDs, _Inout_ PGESTURECONFIG pGestureConfig, _In_ UINT cbSize );
Parameters
hwnd [in]A handle to the window to get the gesture configuration from.dwReserved [in]This value is reserved and must be set to 0.
dwFlags [in]A gesture command flag value indicating options for retrieving the gesture configuration. See Remarks for additional information and supported values.
pcIDs [in]The size, in number of gesture configuration structures, that is in the pGestureConfig buffer.
pGestureConfig [in, out]An array of gesture configuration structures that specify the gesture configuration.
cbSize [in]The size of the gesture configuration (GESTURECONFIG) structure.
Return value
If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, use the GetLastError function.
Remarks
Passing a value other thansizeof(GESTURECONFIG)for the cbSize parameter will cause calls to this function to fail and GetLastError will return ERROR_INVALID_PARAMETER (87 in decimal).
The following table lists the gesture configuration values:
Name | Value | Description |
---|---|---|
GCF_INCLUDE_ANCESTORS | 0x00000001 | If specified, GetGestureConfig returns consolidated configuration for the specified window and its parent window chain. |
Examples
GESTURECONFIG gc[3]; UINT uiGcs = 3; ZeroMemory(&gc, sizeof(gc)); gc[0].dwID = GID_ZOOM; gc[1].dwID = GID_ROTATE; gc[2].dwID = GID_PAN; BOOL bResult = GetGestureConfig(hWnd, 0, 0, &uiGcs, gc, sizeof(GESTURECONFIG)); if (!bResult){ DWORD err = GetLastError(); }
Requirements
Minimum supported client | Windows 7 [desktop apps only] |
---|---|
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Header | Winuser.h (include Windows.h) |
Library | User32.lib |
DLL | User32.dll |
相关文章推荐
- SetGestureConfig function
- 海康web视频插件错误:TypeError: c.HWP_GetLocalConfig is not a function
- GetGestureConfig 函数-中文整理
- cordovaProject.projectConfig.getFileResources is not a function
- GetGestureExtraArgs function
- GetGestureInfo function
- getServletContext和getServletConfig都有getInitParameter的方法 区别
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));错误解决方法
- Call to undefined function openssl_get_privatekey()
- flex sdk中mx_internal function getTextField() 这种函数如何调用?
- tomcat7 启动项目报错 java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()
- DedeCMS提示"Call to a member function GetInnerText()"解决办法
- angular 1.6 $http.get(...).success is not a function 解决办法
- Scriptaculous 中的 "... getStyle is not a function." 错误
- EPLAN API 入门系列- 提高篇(How to get Symbol via Function)
- Angular 1.6提示$http.get(...).success is not a function
- JNI: Passing multiple parameters in the function signature for GetMethodID
- Perl function:getFileList