在任务栏应用程序 [英] Application in the Taskbar

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

问题描述

你能不能给我如何把我的申请表在任务栏的例子吗?  如Windows媒体播放器或窗口搜索时,最大限度地减少。

Can you give me an example on how to put my application form in the taskbar? like Windows media player or Window search when minimize.

推荐答案

您所期待的是建立一个的应用程序桌面工具栏(又称AppBar)。您使用的主要功能注册您的应用程序窗口作为一个AppBar是<一个href="http://msdn.microsoft.com/en-us/library/bb762108%28VS.85%29.aspx"><$c$c>SHAppBarMessage.

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.

为了让您一开始,你可以看看这个老 appbar例如的用C ++。如果你想这样做在C#中,有一个线程讨论一些<一href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/49698e52-1a29-4f24-8e4e-69230020c551/">details如何做到这一点在WPF 。我不知道怎么用的WinForms做到这一点的例子,但在网络上快速搜索应该带的东西。

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.

更新:其实,如果你想有一个工具栏,它位于任务栏上,你需要实现一个Deskband。下面是在C ++中样本 DeskBand,这里是一个< A HREF =HTTP://www.$c$cproject.com/KB/shell/dotnetbandobjects.aspx> DeskBand在C#

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. :-)

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

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