在Windows XP了,我怎么枚举系统显示的所有窗口(C#) [英] On Windows XP, how do I enumerate all the windows displayed by the system (C#)

查看:187
本文介绍了在Windows XP了,我怎么枚举系统显示的所有窗口(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想与所有可见的(包括最小化)窗口的列表(或数组或其他)来结束。

I would like to end up with a list (or array or whatever) of all the visible (including minimised) windows.

我已经找到2类似的问题,这不的非常的给我什么我在寻找:

- 工作,这窗户在使用Alt-Tab列表

- 列表窗口在另一个用户的会话

I have found 2 similar questions, which don't quite give me what I'm looking for:
- Work out which windows go in the alt-tab list
- list windows in another user's session

感谢。

推荐答案

我认为,雷蒙陈博客条目指出,在第一个链接给你,你想要去的想法。基本上,你会打电话EnumWindows的,然后应用的算法,但你会注意到每一个窗口句柄是可见的。

I think that the blog entry by Raymond Chen pointed to in the first link gives you an idea of where you want to go. Basically, you would call EnumWindows and then apply that algorithm, except that you would take note of every window handle that is visible.

现在的问题是有点含糊,什么是这里的目的(有可能是赋予了更多的信息更好的方法)。

The question is a little vague, what is the purpose here (there might be a better way given more info).

这篇关于在Windows XP了,我怎么枚举系统显示的所有窗口(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆