如何使用Windows在我的简单的.NET应用程序7功能,无需任何新的API?我的、如何使用、应用程序、简单

2023-09-06 23:35:18 作者:梦带我旅行

我想使用Windows 7的功能,如图标叠加,和缩略图的任务,但我的问题是,我可以做到这一点,而无需使用任何其他API的只是我的普通的.NET 3.5。我最近启用了一个应用程序jumplists在使用Shell程序,从而可以类似的东西来为图标叠加和其他Windows 7任务栏功能做了我的C#.NET 3.5。

I want to use windows 7 features like icon overlay, and thumbnail tasks but my question is that can i do it without using any other API on just my plain .net 3.5. i recently enabled jumplists on an application in my c#.net 3.5 using the Shell routine so can something like that be done for icon overlay and other windows 7 taskbar features.

和可旧应用程序,如记事本,我敢肯定有人年前使用这些新的室内配备有?

And can old application like notepad which i am sure was made years ago use these new feaures?

推荐答案

我想这取决于对使用的含义。如果您使用的通用文件对话框,你得到jumplists是免费的。如果你的应用程序是WPF或MFC,你得到一些Windows 7的东西,在这些库(而不是3.5)的最新版本。做不到这一点,则需要直接问的Windows(使用API​​)或使用库不是.NET 3.5的一部分,询问的Windows为您服务。我建议你​​使用 code包。一行$ C $下覆盖图标,例如。它还具有非视觉的Windows 7的功能,如重新启动和恢复,电源感知(.NET事件时,机器返回电池等)。上次更新2009年11月18日,我期待一个新发布的任何一天了。

I guess it depends on the meaning of "use". You get jumplists for free if you use the Common Files Dialog. If your app is WPF or MFC, you get some Windows 7 stuff in the latest version of those libraries (not 3.5). Failing that, you will need to either ask Windows directly (use an API) or use a library that isn't part of .NET 3.5 that will ask Windows for you. I recommend you use the Code Pack. One line of code for an overlay icon, for example. It also has non-visual Windows 7 features like Restart and Recovery, Power Awareness (.NET events when the machine goes on battery etc). It was last updated November 18th 2009 and I am expecting a new release any day now.

 
精彩推荐
图片推荐