Win32:是否可以构建包含其他应用程序的应用程序? [英] Win32: Is it possible to build an app that houses other apps?

查看:92
本文介绍了Win32:是否可以构建包含其他应用程序的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,您将如何编写一个基本上在其中包含其他应用程序的应用程序?

I was wondering, how would you go about writing an application that basically houses other applications inside of it?

我问的原因是,我很想开发一个应用程序,以征服"我目前大量打开的窗户.我以前使用过虚拟窗口管理器,它们都很不错,但是我可以使用我提到的应用程序做很多事情.

The reason I ask is that I'd love to build an app that 'conquers' my current explosion of open windows. I've used virtual window managers before and they're nice and all, but I could do so many things with an app like I mention.

或者,有人知道一个易于使用/直观的应用程序将窗口限制在屏幕的区域"吗?像GridMove之类的东西,但更直观,更流畅吗?

Alternatively does anyone know of an easy to use/intuitive application for confining windows to 'regions' of your screen? Something like GridMove, but more intuitive and less flakey?

推荐答案

您可以创建一个窗口,然后枚举所有具有WS_OVERLAPPEDWINDOW样式的Windows,选择属于您要容纳的应用程序的窗口,然后在窗口上调用SetParent,将父窗口设置为您创建的窗口.您还可以使用FindWindow通过其标题查找窗口.

You could create a window, then you could enumerate all Windows that have the style WS_OVERLAPPEDWINDOW, select the ones belonging to the application you want to house, then call SetParent on the window, setting the parent to the window you created. You could also use FindWindow to find a window by its title.

房屋内的所有窗户都永远不会离开房屋窗户的边界,但是它们仍然遵循所有相同的规则.您仍然可以点击并拖动窗口等.

All the windows inside the house can never leave the house window's boundaries, but they still follow all the same rules. You can still click-and-drag windows etc.

这里的问题是,如果房屋内部的应用程序创建了另一个窗口,则其父项很可能是桌面窗口,而不是房屋窗口.

The problem here is that if the application inside the house creates another window, its parent will most likely be the desktop window, not the house window.

这篇关于Win32:是否可以构建包含其他应用程序的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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