c++ - 关于windows中的owner和owned window

标签 c++ windows

我怎样才能得到一个窗口拥有的所有窗口? (不是它的 child )

最佳答案

您可以使用 EnumWindows 获取窗口列表,然后对于每个窗口句柄,使用 GW_OWNER 标志调用 GetWindow 以获取所有者。通过这种方式,您可以获得指定窗口句柄的拥有窗口列表。

没错。父窗口与所有者窗口不同。

关于c++ - 关于windows中的owner和owned window,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4381518/

相关文章:

c++ - 如果 new-handler 函数未正确编写或无法在 C++ 中释放更多内存,会发生什么情况

c++ - 如何打印 QGraphicsView 的内容

c++ - 我如何获得显示在 IShellView 上下文菜单中的 IContextMenu?

xml - 在 IIS 服务器 web.config 文件中放置 <httpProtocol> 的位置

c++ - 如何#define C++ STL宏

android - JNI : map jobject to native c++ object

windows - powershell中的curl格式化

c++ - 构建使用 boost::asio 的程序时发出警告

c++ - Visual Studio 2015 中的 "non-standard syntax; use ' 和 ' to create a pointer to member"错误

c# - 更改 Windows 7 窗口颜色