Working with system icons in C# application

前端 未结 2 1299
轮回少年
轮回少年 2021-01-19 01:59

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.

相关标签:
2条回答
  • 2021-01-19 02:50

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

    0 讨论(0)
  • 2021-01-19 02:59

    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

    0 讨论(0)
提交回复
热议问题