We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
请参阅 CreateWindowEx 中的各种扩展窗口样式,并找出适合的一种您的需求。 (其中许多都处理任务栏项目,不仅仅是一个。)然后只需使用
SetWindowLong
设置样式即可。还有ITaskbarList::DeleteTab,但我真的
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.
隐藏窗户。 ShowWindow
Hide the window. ShowWindow
您是否考虑过在系统托盘中创建图标或创建 Windows 服务?
Have you considered creating an icon in the system tray or creating a windows service?
您想要使用 CreateWindowEx 创建窗口 并使用 WS_EX_TOOLWINDOW 样式从任务栏隐藏窗口。另外,创建窗口后,请使用 SW_HIDE 调用 ShowWindow。
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.
我会尝试向他们发送
WM_SETICON
以及NULL
的大图标和小图标。I'd try to send them
WM_SETICON
withNULL
for both the big and small icons.