你能举个例子说明如何将我的申请表放在任务栏中吗?最小化时像 Windows 媒体播放器或窗口搜索。
2 回答
What you are looking for is creating an Application Desktop Toolbar (also known as AppBar). The main function you use to register your application window as an AppBar is SHAppBarMessage
.
To get you started, you can look at this old appbar example with C++. If you want to do it in C#, there's a thread that discusses some details on how to do it in WPF. I am not aware of examples of how to do it with WinForms, but a quick search on the web should bring something.
Update: Actually, if you want a toolbar that sits on the taskbar, you need to implement a Deskband. Here's a sample DeskBand in C++ and here's a DeskBand in C#.
That's what happens when you don't touch a topic in a while. :-)
这真正被称为“系统托盘” 您希望您的应用程序在 Windows 系统托盘中有一个图标。许多语言都提供此功能。
这里有几个链接:
http://www.codeguru.com/Cpp/COM-Tech/shell/icons/article.php/c1335