网站首页  词典首页

请输入您要查询的函数:

 

术语 gdisetbatchlimit
释义 GdiSetBatchLimit
语法:
DWORD GdiSetBatchLimit(
__in DWORD dwLimit
);
GdiSetBatchLimit功能
该GdiSetBatchLimit功能设置函数调用的最大数量,可以在调用线程的当前一批积累。该系统刷新当前批处理时超过此限制。
参数
dwLimit [in]
指定一批限额设置。值为0设置默认的限制。为1禁用配料的价值。
返回值
如果函数成功,返回值是以前的一批限制。
如果函数失败,返回值是零。
备注
GDI的绘图功能,只有返回布尔值可以在本批次积累到任何其他GDI函数调用立即刷新当前批处理。超过批次限制,或调用GdiFlush功能也刷新当前批处理。
当系统积累了函数调用,该函数返回TRUE,表明它是批处理中。当系统刷新当前批处理并执行第二次的函数,返回值为TRUE或FALSE,取决于函数成功。这第二个返回值只有GdiFlush报告是用来刷新一批。
注意保持批次限制为每个线程分别。为了在每个线程初始化完全禁用配料,请GdiSetBatchLimit(1)。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
绘画和绘图概述
绘画和绘图功能
GdiFlush
GdiGetBatchLimit
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GdiSetBatchLimit Function
The GdiSetBatchLimit function sets the maximum number of function calls that can be accumulated in the calling thread's current batch. The system flushes the current batch whenever this limit is exceeded.
Syntax
DWORD GdiSetBatchLimit(
__in DWORD dwLimit
);
Parameters
dwLimit [in]
Specifies the batch limit to be set. A value of 0 sets the default limit. A value of 1 disables batching.
Return Value
If the function succeeds, the return value is the previous batch limit.
If the function fails, the return value is zero.
Remarks
Only GDI drawing functions that return Boolean values can be accumulated in the current batch; calls to any other GDI functions immediately flush the current batch. Exceeding the batch limit or calling the GdiFlush function also flushes the current batch.
When the system accumulates a function call, the function returns TRUE to indicate it is in the batch. When the system flushes the current batch and executes the function for the second time, the return value is either TRUE or FALSE, depending on whether the function succeeds. This second return value is reported only if GdiFlush is used to flush the batch.
Note The batch limit is maintained for each thread separately. In order to completely disable batching, call GdiSetBatchLimit (1) during the initialization of each thread.
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
GdiFlush
GdiGetBatchLimit
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144846(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 11:22:52