简体   繁体   English

需要:一个没有任务栏图标的弹出窗口

[英]Needed: A popup window without a taskbar icon

I am designing a UI engine that needs to render into popup (WS_POPUP) windows. 我正在设计一个UI引擎,该引擎需要呈现到弹出窗口(WS_POPUP)窗口中。 As these windows cannot be children of other windows, each instance is given its own taskbar icon. 由于这些窗口不能是其他窗口的子窗口,因此每个实例都具有自己的任务栏图标。

I need a way to prevent the taskbar icons from appearing for certain windows that are created as "dialogs". 我需要一种方法来防止任务栏图标出现在某些被创建为“对话框”的窗口中。 I cannot use an OS-provided dialog because they all have frames (and I can't figure out how to render into them) or a tool-created custom dialog (which seem to require the CLR). 我不能使用OS提供的对话框,因为它们都具有框架(并且我不知道如何渲染到它们中)或工具创建的自定义对话框(似乎需要CLR)。

I am not an expert with the windows API and I feel that I have missed something obvious... 我不是Windows API的专家,我觉得我错过了一些明显的事情...

Also: Anything involving CLI/CLR is not an option. 另外:涉及CLI / CLR的任何内容都不是可选的。

EDIT: 编辑:

The WS_EX_NOACTIVATE style can be used for this purpose as well, though the activation behavior would need to be emulated by the program. WS_EX_NOACTIVATE样式也可以用于此目的,尽管激活行为需要由程序进行模拟。

If you set the WS_EX_TOOLWINDOW extended style for your window, it won't be shown in the task bar or Alt+Tab list. 如果您为窗口设置WS_EX_TOOLWINDOW扩展样式,则它不会显示在任务栏或Alt + Tab列表中。 This does cause the window to be rendered slightly differently, however (thinking floating tool palette). 但是,这的确会导致窗口的呈现稍有不同(考虑浮动工具选项板)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM