Windows Taskbar API [closed]

三世轮回 提交于 2019-12-01 10:45:40

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!