如何在 Windows 7 中隐藏窗口,就像桌面管理器一样
当我在 Windows 7 上安装虚拟桌面管理器并切换到不同的虚拟桌面时,所有当前窗口都会消失,也会从“开始”菜单中消失。
我想以类似的方式隐藏某些特定应用程序的窗口,但不是全部。我怎样才能隐藏这样的窗口?
特别是,我需要隐藏 VirtualBox Seamless 模式窗口,因此我不确定最小化窗口是否有效。然而,当使用虚拟桌面管理器时,它就会消失。
When I install a virtual desktop manager on Windows 7, and I switch to a different virtual desktop, all the current windows disappear, also disappearing from the Start Menu.
I want to hide some of a particular application's windows, but not all of them, in a similar manner. How can I hide a window like this?
In particular, I need to hide a VirtualBox Seamless mode window, so I'm not sure minimizing the window will work. It does, however, disappear when using virtual desktop managers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
同一窗口不能出现在多个桌面上。如果您需要应用程序窗口出现在多个桌面上,则需要为每个桌面创建一个单独的窗口。窗口显示的桌面取决于创建窗口的线程。您可以使用 SetThreadDesktop 函数更改桌面线程分配。
The same window cannot appear on multiple desktops. If you need your application window to appear on multiple desktops you need to create a separate window for each desktop. The desktop a window appears on depends on the thread that creates the window. You can change the desktop thread assignment using the SetThreadDesktop function.
答案很简单:
ShowWindow(SW_HIDE)
和ShowWindow(SW_SHOW)
。我认为“虚拟桌面管理器”只是隐藏窗口并在桌面更改时根据需要显示它们。The answer is simply
ShowWindow(SW_HIDE)
andShowWindow(SW_SHOW)
. I think "Virtual Desktop Managers" just hide windows and show them as necessary when the desktops change.