术语 | getupdaterect |
释义 | GetUpdateRect 语法: BOOL GetUpdateRect( __in HWND hWnd, __out LPRECT lpRect, __in BOOL bErase ); GetUpdateRect功能 该GetUpdateRect函数检索的最小矩形完全包含指定的窗口更新区域的坐标。 GetUpdateRect检索的逻辑坐标的矩形。如果没有更新区域,GetUpdateRect检索一个空矩形(套所有坐标为零)。 参数 hWnd [in] 句柄窗口的更新区域是要检索。 lpRect [out] 指向RECT结构接收的坐标,在设备的单位,封闭的矩形。 应用程序可以将此参数设置为NULL,以确定是否有更新区域的窗口存在。如果该参数为NULL,GetUpdateRect返回非零如果更新区域存在和零如果不。这为确定是否一个WM_PAINT消息来自一个无效的地区造成一种简单而有效的手段。 bErase [in] 指定是否在更新区域的背景是被删除。如果此参数为true和更新区域不是空的,GetUpdateRect WM _ ERASEBKGND消息发送到指定的窗口擦除背景。 返回值 如果更新区域不为空,则返回值为非零。 如果没有更新区域,返回值是零。 备注 此更新的矩形BeginPaint函数检索是完全相同GetUpdateRect检索的。 调用BeginPaint自动验证更新区域,因此任何要求GetUpdateRect后向调用BeginPaint立即打电话检索一个空的更新区域。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinuser.h(头文件:winuser.h) LibraryUser32.lib DLLUser32.dll 参见 绘画和绘图概述 绘画和绘图功能 调用BeginPaint GetUpdateRgn InvalidateRect RECT UpdateWindow ValidateRect 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==GetUpdateRect Function The GetUpdateRect function retrieves the coordinates of the smallest rectangle that completely encloses the update region of the specified window. GetUpdateRect retrieves the rectangle in logical coordinates. If there is no update region, GetUpdateRect retrieves an empty rectangle (sets all coordinates to zero). Syntax BOOL GetUpdateRect( __in HWND hWnd, __out LPRECT lpRect, __in BOOL bErase ); Parameters hWnd [in] Handle to the window whose update region is to be retrieved. lpRect [out] Pointer to the RECT structure that receives the coordinates, in device units, of the enclosing rectangle. An application can set this parameter to NULL to determine whether an update region exists for the window. If this parameter is NULL, GetUpdateRect returns nonzero if an update region exists, and zero if one does not. This provides a simple and efficient means of determining whether a WM_PAINT message resulted from an invalid area. bErase [in] Specifies whether the background in the update region is to be erased. If this parameter is TRUE and the update region is not empty, GetUpdateRect sends a WM_ERASEBKGND message to the specified window to erase the background. Return Value If the update region is not empty, the return value is nonzero. If there is no update region, the return value is zero. Remarks The update rectangle retrieved by the BeginPaint function is identical to that retrieved by GetUpdateRect. BeginPaint automatically validates the update region, so any call to GetUpdateRect made immediately after the call to BeginPaint retrieves an empty update region. 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 GetUpdateRgn InvalidateRect RECT UpdateWindow ValidateRect Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144943(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。