网站首页  词典首页

请输入您要查询的函数:

 

术语 setboundsrect
释义 SetBoundsRect
语法:
UINT SetBoundsRect(
__in HDC hdc,
__in const RECT *lprcBounds,
__in UINT flags
);
SetBoundsRect功能
该SetBoundsRect功能控制边界为指定设备环境的矩形资料的积累。该系统可以维护所有绘制操作的边界矩形。应用程序可以检查并设置这个矩形。绘图边界有用无效的位图缓存。
参数
hdc [in]
阿处理设备环境为其积累的边界矩形。
lprcBounds [in]
一个 RECT结构用于设置边界矩形的指针。矩形尺寸在逻辑坐标。此参数可以为NULL。
旗 [in]
指定如何在新的矩形会结合积累的矩形。此参数可以是下列值的之一。
ValueMeaning
DCB_ACCUMULATEAdds由lprcBounds参数指定的边界矩形(使用矩形工会运作矩形)。同时使用DCB_RESET和DCB_ACCUMULATE设置边界矩形由lprcBounds参数指定的矩形。
DCB_DISABLETurns关闭边界的积累。
DCB_ENABLETurns关于边界的积累,这是默认被禁用。
DCB_RESETClears边界矩形。
返回值
如果函数成功,返回值指定的边界矩形以前的状态。此状态可以是下列值的组合。
ValueMeaning
DCB_DISABLEBoundary积累是关闭的。
DCB_ENABLEBoundary积累的。 DCB_ENABLE和DCB_DISABLE是并行不悖的。
DCB_RESETBounding矩形是空的。
DCB_SETBounding矩形是不是空的。 DCB_SET和DCB_RESET是并行不悖的。
如果函数失败,返回值是零。
备注
该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
参见
绘画和绘图概述
绘画和绘图功能
GetBoundsRect
RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetBoundsRect Function
The SetBoundsRect function controls the accumulation of bounding rectangle information for the specified device context. The system can maintain a bounding rectangle for all drawing operations. An application can examine and set this rectangle. The drawing boundaries are useful for invalidating bitmap caches.
Syntax
UINT SetBoundsRect(
__in HDC hdc,
__in const RECT *lprcBounds,
__in UINT flags
);
Parameters
hdc [in]
A handle to the device context for which to accumulate bounding rectangles.
lprcBounds [in]
A pointer to a RECT structure used to set the bounding rectangle. Rectangle dimensions are in logical coordinates. This parameter can be NULL.
flags [in]
Specifies how the new rectangle will be combined with the accumulated rectangle. This parameter can be one of more of the following values.
ValueMeaning
DCB_ACCUMULATEAdds the rectangle specified by the lprcBounds parameter to the bounding rectangle (using a rectangle union operation). Using both DCB_RESET and DCB_ACCUMULATE sets the bounding rectangle to the rectangle specified by the lprcBounds parameter.
DCB_DISABLETurns off boundary accumulation.
DCB_ENABLETurns on boundary accumulation, which is disabled by default.
DCB_RESETClears the bounding rectangle.

Return Value
If the function succeeds, the return value specifies the previous state of the bounding rectangle. This state can be a combination of the following values.
ValueMeaning
DCB_DISABLEBoundary accumulation is off.
DCB_ENABLEBoundary accumulation is on. DCB_ENABLE and DCB_DISABLE are mutually exclusive.
DCB_RESETBounding rectangle is empty.
DCB_SETBounding rectangle is not empty. DCB_SET and DCB_RESET are mutually exclusive.

If the function fails, the return value is zero.
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
GetBoundsRect
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162966(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:23:34