使用C#应用程序中的系统图标 [英] Working with system icons in C# application

查看:123
本文介绍了使用C#应用程序中的系统图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到Windows XP / Vista / 7中使用的所有系统图标?有可能吗?

Where can I find all system icons used in Windows XP/Vista/7? Is it possible?

我尝试使用 SHGetStockIconInfo(),但它只返回一些图标。

I tried using SHGetStockIconInfo(), but it returns only some icons.

推荐答案

在Windows 7中,您可以找到许多图标:

For Windows 7 you can find many of the icons here:

%SystemRoot%\system32\DDORes.dll
%SystemRoot%\system32\imageres.dll
%SystemRoot%\system32\shell32.dll

我不建议提取它们并使用它们,因为这会侵犯我的版权。

I wouldn't recommend extracting them and using them though as that would be a copyright violation I think.

你可以得到一大堆windows图像在Visual Studio中,如下所述:

You can get a whole bunch of windows images within Visual Studio as explained here:

http: //msdn.microsoft.com/en-us/library/ms246582.aspx


Visual Studio 2010图像库包含
出现在Microsoft Windows中的应用程序映像,t他是Office系统,Microsoft Visual
Studio和其他Microsoft软件。您可以使用这组超过
1,000的图像来创建与
Microsoft软件在视觉上一致的应用程序。

The Visual Studio 2010 Image Library contains application images that appear in Microsoft Windows, the Office system, Microsoft Visual Studio, and other Microsoft software. You can use this set of over 1,000 images to create applications that look visually consistent with Microsoft software.

编辑:

请求的Visual Studio 2008版本:

Requested Visual Studio 2008 version:

http://msdn.microsoft.com/en-us/library/ms246582(v=vs .90).aspx

为了完整性,Visual Studio 2005版本:

And for completeness the Visual Studio 2005 version:

http://msdn.microsoft.com/en-us/library/ms246582(ⅴ = vs.80).aspx

这篇关于使用C#应用程序中的系统图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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