术语 | validatergn |
释义 | ValidateRgn 语法: BOOL ValidateRgn( __in HWND hWnd, __in HRGN hRgn ); ValidateRgn功能 函数验证的ValidateRgn在一个区域内,清除指定窗口的当前更新区域该区域的客户区。 参数 hWnd [in] 句柄窗口的更新区域进行修改。 hRgn [in] 句柄区域定义的地方,而免去更新区域。如果该参数为NULL,整个客户区被删除。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 备注 指定的区域必须是一个地区创造的功能。该区域的坐标假定为客户坐标。 在BeginPaint函数自动验证,整个客户区。无论是ValidateRect也不ValidateRgn职能应叫如果一个地区的部分更新之前,必须在下一个WM_PAINT消息验证生成的。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinuser.h(头文件:winuser.h) LibraryUser32.lib DLLUser32.dll 参见 绘画和绘图概述 绘画和绘图功能 调用BeginPaint ExcludeUpdateRgn InvalidateRect InvalidateRgn ValidateRect WM_PAINT消息 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==ValidateRgn Function The ValidateRgn function validates the client area within a region by removing the region from the current update region of the specified window. Syntax BOOL ValidateRgn( __in HWND hWnd, __in HRGN hRgn ); Parameters hWnd [in] Handle to the window whose update region is to be modified. hRgn [in] Handle to a region that defines the area to be removed from the update region. If this parameter is NULL, the entire client area is removed. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Remarks The specified region must have been created by a region function. The region coordinates are assumed to be client coordinates. The BeginPaint function automatically validates the entire client area. Neither the ValidateRect nor ValidateRgn function should be called if a portion of the update region must be validated before the next WM_PAINT message is generated. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinuser.h (include Windows.h) LibraryUser32.lib DLLUser32.dll See Also Painting and Drawing Overview Painting and Drawing Functions BeginPaint ExcludeUpdateRgn InvalidateRect InvalidateRgn ValidateRect WM_PAINT Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd145195(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。