Windows 任务栏 API [英] Windows Taskbar API

查看:59
本文介绍了Windows 任务栏 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何 API 可以控制在给定时间在 Windows (7) 任务栏中显示哪些图标?我想让进程仍在运行,但它们的图标没有显示在任务栏上.

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.

推荐答案

查看 CreateWindowEx,并找出哪一个适合您的需求.(他们中的许多人处理任务栏项目,不仅仅是一个.)然后只需使用 SetWindowLong 设置样式.

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.

还有 ITaskbarList::DeleteTab,但我真的不建议使用它来隐藏您的窗口.

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

这篇关于Windows 任务栏 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆