开发者

How do you have a window that has no icon in the tasktray?

开发者 https://www.devze.com 2022-12-19 09:36 出处:网络
I found the windows style WS_EX_TOOLWINDOW but this changes the title bar. Is there a way to not have the tasktray icon but keep the normal开发者_如何学运维 window titlebar? You usually do want to do

I found the windows style WS_EX_TOOLWINDOW but this changes the title bar. Is there a way to not have the tasktray icon but keep the normal开发者_如何学运维 window titlebar?


You usually do want to do this if you have added an alternate means to restore the window - for example placing an icon in the notification tray.

The usual way of ensuring the taskbar does not display your window is to create it with a hidden parent window. Whenever a window has a parent, the parent window is used to create the button - hidden windows are not shown on the taskbar.

Also, WS_EX_APPWINDOW should be removed as that performs the opposite hint to the shell and forces the window onto the taskbar even if it would otherwise not have been shown.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号