网站首页  词典首页

请输入您要查询的函数:

 

术语 canceldc
释义 CancelDC
语法:
BOOL CancelDC(
__in HDC hdc
);
CancelDC功能
取消的CancelDC函数在指定的设备上下文(DC)任何挂起的操作。
参数
hdc [in]
句柄到DC。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该CancelDC函数是使用多线程应用程序,取消冗长的绘制操作。如果线程A启动一个冗长的绘图操作,线程B可以取消这个功能通过调用该操作。
如果操作被取消,受影响的线程返回一个错误,它的绘图操作的结果是不确定的。该结果也不确定的,如果没有绘图操作时,这个功能被称为进展。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
设备上下文概述
设备上下文函数
CreateThread
GetCurrentThread
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CancelDC Function
The CancelDC function cancels any pending operation on the specified device context (DC).
Syntax
BOOL CancelDC(
__in HDC hdc
);
Parameters
hdc [in]
A handle to the DC.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The CancelDC function is used by multithreaded applications to cancel lengthy drawing operations. If thread A initiates a lengthy drawing operation, thread B may cancel that operation by calling this function.
If an operation is canceled, the affected thread returns an error and the result of its drawing operation is undefined. The results are also undefined if no drawing operation was in progress when the function was called.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Device Contexts Overview
Device Context Functions
CreateThread
GetCurrentThread
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183399(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:32:03