我怎样才能赋予其HWND窗口的子窗口? [英] How can I get the child windows of a window given its HWND?

查看:171
本文介绍了我怎样才能赋予其HWND窗口的子窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个给定的窗口句柄。我如何才能枚举其子窗口?

I have the handle for a given window. How can I enumerate its child windows?

推荐答案

我已经找到了最好的解决方案要管理的WindowsAPI 。它有可能被用于选择窗口(这个问题不是一部分)十字控制和方法AllChildWindows来获取所有的子窗口其中可能包裹EnumChildWindows功能。最好不要另起炉灶。

I've found the best solution to be Managed WindowsAPI. It had a CrossHair control that could be used to select a window(not part of the question), and a method AllChildWindows to get all child windows which likely wrapped the EnumChildWindows function. Better not to reinvent the wheel.

这篇关于我怎样才能赋予其HWND窗口的子窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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