开发者

Windows Taskbar API [closed]

开发者 https://www.devze.com 2023-02-14 11:17 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_如何学编程

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

Is there any API that allows to control which icons are shown in the Windows (7) Taskbar at a given time? I would like to have the processes still running, but their icons not show up on the taskbar.


See the various extended window styles in CreateWindowEx, and figure out which one suits your needs. (Many of them deal with taskbar items, it's not just one.) Then just set the style with SetWindowLong.

There's also ITaskbarList::DeleteTab, but I really don't recommend this for hiding your window.


I want the window to be hidden from view, including from the taskbar;

Hide the window. ShowWindow

ShowWindow(hwnd, SW_HIDE); 


Have you considered creating an icon in the system tray or creating a windows service?


You want to create the windows using CreateWindowEx and use the WS_EX_TOOLWINDOW style to hide the window from the taskbar. Also, once you've created the window, call ShowWindow with SW_HIDE.


I'd try to send them WM_SETICON with NULL for both the big and small icons.

0

精彩评论

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