Ticket #15068 (closed enhancement: fixed)
[MSW] Extend wxArtProvider to return native icons for some wxArtIDs
| Reported by: | markusj | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxMSW | Version: | 2.9-svn |
| Keywords: | wxArtProvider | Cc: | troelsk@… |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
Under Vista and higher, the code uses the Windows API function SHGetStockIconInfo to get native icons for the following wxArtIDs:
wxART_ERROR
wxART_QUESTION
wxART_WARNING
wxART_INFORMATION
wxART_HELP
wxART_FOLDER
wxART_FOLDER_OPEN
wxART_DELETE
wxART_FIND
wxART_HARDDISK
wxART_FLOPPY
wxART_CDROM
wxART_REMOVABLE
If this is not available, it uses wxFSVolume to get a list of volumes and if a matching kind is found, it uses the Windows API function SHGetFileInfo to get an icon for the following wxArtIDs:
wxART_HARDDISK
wxART_FLOPPY
wxART_CDROM
wxART_FOLDER
wxART_FOLDER_OPEN
If that fails, the code tries to get an icon directly from the SHELL32.DLL in the Windows system directory. This assumes that the icon indices for lower values are identical for all different versions of this DLL.

