Working with system icons in C# application

女生的网名这么多〃 提交于 2019-12-19 19:54:48

问题


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

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


回答1:


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.

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

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

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.

EDIT:

Requested Visual Studio 2008 version:

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

And for completeness the Visual Studio 2005 version:

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




回答2:


Without specifying exactly which icons you're talking about, there is a SystemIcons class in the System.Drawing namespace.



来源:https://stackoverflow.com/questions/8931442/working-with-system-icons-in-c-sharp-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!