网站首页  词典首页

请输入您要查询的函数:

 

术语 killtimer
释义 KillTimer
语法:
BOOL KillTimer( HWND hWnd,
UINT_PTR uIDEvent
);
KillTimer函数
KillTimer函数破坏指定的计时器。
参数
hWnd
[in]句柄与指定计时器相关的窗口。此值必须与传递给SetTimer函数创建计时器的hWnd值相同。
uIDEvent
[in]指定计时器被摧毁。如果窗口句柄传递给SetTimer是有效的,此参数必须与传递给SetTimer的nIDEvent值相同。如果应用程序调用SetTimer与hWnd设置为NULL,这个参数必须是定时器标识符SetTimer返回。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
KillTimer函数不会删除WM_TIMER消息已发送到消息队列。
例如
有关示例,请参见销毁一个计时器。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
定时器概述,SetTimer,中WM_TIMER
==英文原文==KillTimer Function
The KillTimer function destroys the specified timer.
Syntax
BOOL KillTimer( HWND hWnd,
UINT_PTR uIDEvent
);
Parameters
hWnd
[in] Handle to the window associated with the specified timer. This value must be the same as the hWnd value passed to the SetTimer function that created the timer.
uIDEvent
[in] Specifies the timer to be destroyed. If the window handle passed to SetTimer is valid, this parameter must be the same as the nIDEvent value passed to SetTimer. If the application calls SetTimer with hWnd set to NULL, this parameter must be the timer identifier returned by SetTimer.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The KillTimer function does not remove WM_TIMER messages already posted to the message queue.
Example
For an example, see Destroying a Timer .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Timers Overview , SetTimer , WM_TIMER
==原始网址==http://msdn.microsoft.com/en-us/library/ms644903(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:31:20