Hi,
I'm trying to get the icon for folders from SHELL32.DLL and using it in an image list for a TreeView, like so:-
The thing is, the tree view subsequently displays the XP 32-bit colour icon for it drawn in 8-bit colour, which looks icky. I want the 8-bit colour version, dammit! I know it's in there...Code:HICON icon; HIMAGELIST himl; ExtractIconEx("shell32.dll", -4, NULL, &icon, 1); himl = ImageList_Create(16, 16, ILC_COLOR8 | ILC_MASK, 1, 1); ImageList_AddIcon(himl, icon);![]()



LinkBack URL
About LinkBacks




