术语 | getupdatergn |
释义 | GetUpdateRgn 语法: int GetUpdateRgn( __in HWND hWnd, __in HRGN hRgn, __in BOOL bErase ); GetUpdateRgn功能 该GetUpdateRgn函数检索复制到指定的区域是一个窗口更新区域。更新的区域的坐标是相对于左上角的窗角(也就是说,他们的客户坐标)。 参数 hWnd [in] 窗口句柄与更新区域要被检索。 hRgn [in] 处理该地区接收更新区域。 bErase [in] 指定窗口的背景是否应该被删除,是否子窗口的非工作区应制定。如果此参数为FALSE,没有图纸已经完成。 返回值 返回值表示所形成的区域的复杂性,它可以是下列值之一。 ValueMeaning COMPLEXREGIONRegion由多个矩形。 ERRORAn发生错误。 NULLREGIONRegion是空的。 SIMPLEREGIONRegion是一个单一的矩形。 备注 在BeginPaint函数自动验证更新区域,因此,任何GetUpdateRgn后,作出上述呼吁的调用BeginPaint立即打电话检索一个空的更新区域。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinuser.h(头文件:winuser.h) LibraryUser32.lib DLLUser32.dll 参见 绘画和绘图概述 绘画和绘图功能 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==GetUpdateRgn Function The GetUpdateRgn function retrieves the update region of a window by copying it into the specified region. The coordinates of the update region are relative to the upper-left corner of the window (that is, they are client coordinates). Syntax int GetUpdateRgn( __in HWND hWnd, __in HRGN hRgn, __in BOOL bErase ); Parameters hWnd [in] Handle to the window with an update region that is to be retrieved. hRgn [in] Handle to the region to receive the update region. bErase [in] Specifies whether the window background should be erased and whether nonclient areas of child windows should be drawn. If this parameter is FALSE, no drawing is done. Return Value The return value indicates the complexity of the resulting region; it can be one of the following values. ValueMeaning COMPLEXREGIONRegion consists of more than one rectangle. ERRORAn error occurred. NULLREGIONRegion is empty. SIMPLEREGIONRegion is a single rectangle. Remarks The BeginPaint function automatically validates the update region, so any call to GetUpdateRgn 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 Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144944(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。