网站首页  词典首页

请输入您要查询的函数:

 

术语 enumthreadwindows
释义 EnumThreadWindows
语法:
BOOL EnumThreadWindows( DWORD dwThreadId,
WNDENUMPROC lpfn,
LPARAM lParam
);
EnumThreadWindows功能
该EnumThreadWindows函数枚举所有nonchild的句柄传递到每个窗口又线程关联的窗口,一个应用程序定义的回调函数。 EnumThreadWindows继续枚举或回调函数返回FALSE,直到最后一个窗口。枚举某个特定的窗口子窗口,使用EnumChildWindows函数。
参数
dwThreadId
[in]标识线程的窗户被枚举。
lpfn
[in]指向一个应用程序定义的回调函数。有关更多信息,请参阅EnumThreadWndProc。
lparam的
[in]指定一个应用程序定义的值传递给回调函数。
返回值
如果回调函数返回由dwThreadId指定的线程所有窗口TRUE,则返回值为TRUE。如果回调函数返回FALSE列举的任何窗口,或如果没有窗户由dwThreadId指定的线程发现,返回值为FALSE。
例如
有关示例,请参阅处理注销事件。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
视窗概述,EnumChildWindows,EnumThreadWndProc,EnumWindows
==英文原文==EnumThreadWindows Function
The EnumThreadWindows function enumerates all nonchild windows associated with a thread by passing the handle to each window, in turn, to an application-defined callback function. EnumThreadWindows continues until the last window is enumerated or the callback function returns FALSE. To enumerate child windows of a particular window, use the EnumChildWindows function.
Syntax
BOOL EnumThreadWindows( DWORD dwThreadId,
WNDENUMPROC lpfn,
LPARAM lParam
);
Parameters
dwThreadId
[in] Identifies the thread whose windows are to be enumerated.
lpfn
[in] Pointer to an application-defined callback function. For more information, see EnumThreadWndProc .
lParam
[in] Specifies an application-defined value to be passed to the callback function.
Return Value
If the callback function returns TRUE for all windows in the thread specified by dwThreadId, the return value is TRUE. If the callback function returns FALSE on any enumerated window, or if there are no windows found in the thread specified by dwThreadId, the return value is FALSE.
Example
For an example, see Handling Logoff Events .
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
Windows Overview , EnumChildWindows , EnumThreadWndProc , EnumWindows
==原始网址==http://msdn.microsoft.com/en-us/library/ms633495(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:17:07