通过EnumWindows枚举顶层窗口,并显示窗口信息

The EnumWindows function enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.
这是MSDN上关于EnumWindows函数的解释,意思是枚举所有处于顶层的窗口,但是什么是顶层窗口我并不是十分了解,因为从程序运行的结果我看不出所谓顶层窗口有什么共性,需要再研究研究,程序代码如下:

Code

 

posted @ 2009-08-11 18:11  认真做人,认真做事  阅读(1491)  评论(0编辑  收藏  举报