术语 | getboundsrect |
释义 | GetBoundsRect 语法: UINT GetBoundsRect( __in HDC hdc, __out LPRECT lprcBounds, __in UINT flags ); GetBoundsRect功能 该GetBoundsRect函数获得一个指定的设备上下文目前累积的边界矩形。 该系统拥有一个为每个应用积累的边界矩形。应用程序可以检索和设置这个矩形。 参数 hdc [in] 阿处理设备环境的边界矩形函数将返回。 lprcBounds [out] 一个RECT结构指针,将获得目前的边界矩形。应用程序的矩形返回逻辑坐标,边界矩形是在屏幕返回坐标。 旗 [in] 指定如何GetBoundsRect函数的行为。此参数可以是以下值。 ValueMeaning 回国后,它DCB_RESETClears边界矩形。如果此标志没有设置,边界矩形不会被清除。 返回值 返回值指定国家积累的边界矩形,它可以是下列值之一。 ValueMeaning 0An发生错误。指定的设备上下文句柄无效。 DCB_DISABLEBoundary积累是关闭的。 DCB_ENABLEBoundary积累的。 DCB_RESETThe边界矩形是空的。 DCB_SETThe边界矩形不为空。 备注 该DCB_SET价值是位值的组合DCB_ACCUMULATE和DCB_RESET。应用程序检查DCB_RESET位,以确定是否边界矩形是空的还必须检查DCB_ACCUMULATE位。边界矩形是空的只有DCB_RESET位是1,DCB_ACCUMULATE位为0。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 绘画和绘图概述 绘画和绘图功能 SetBoundsRect 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==GetBoundsRect Function The GetBoundsRect function obtains the current accumulated bounding rectangle for a specified device context. The system maintains an accumulated bounding rectangle for each application. An application can retrieve and set this rectangle. Syntax UINT GetBoundsRect( __in HDC hdc, __out LPRECT lprcBounds, __in UINT flags ); Parameters hdc [in] A handle to the device context whose bounding rectangle the function will return. lprcBounds [out] A pointer to the RECT structure that will receive the current bounding rectangle. The application's rectangle is returned in logical coordinates, and the bounding rectangle is returned in screen coordinates. flags [in] Specifies how the GetBoundsRect function will behave. This parameter can be the following value. ValueMeaning DCB_RESETClears the bounding rectangle after returning it. If this flag is not set, the bounding rectangle will not be cleared. Return Value The return value specifies the state of the accumulated bounding rectangle; it can be one of the following values. ValueMeaning 0An error occurred. The specified device context handle is invalid. DCB_DISABLEBoundary accumulation is off. DCB_ENABLEBoundary accumulation is on. DCB_RESETThe bounding rectangle is empty. DCB_SETThe bounding rectangle is not empty. Remarks The DCB_SET value is a combination of the bit values DCB_ACCUMULATE and DCB_RESET. Applications that check the DCB_RESET bit to determine whether the bounding rectangle is empty must also check the DCB_ACCUMULATE bit. The bounding rectangle is empty only if the DCB_RESET bit is 1 and the DCB_ACCUMULATE bit is 0. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) LibraryGdi32.lib DLLGdi32.dll See Also Painting and Drawing Overview Painting and Drawing Functions SetBoundsRect Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144854(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。