Using TreeView with ImageList (Fixed) [modified]
-
I managed to retrieve my desired icon from shell32.dll. However the icon doesn't appear smooth! :S
HICON hItem = ExtractIcon(0, L"C:\\Windows\\system32\\shell32.dll", 8); // Full Path for Shell 32
ImageList_AddIcon( himlIcons, hItem );
DestroyIcon(hItem);Manifest Dependency fixed it!
modified on Thursday, August 19, 2010 1:43 PM
-
I managed to retrieve my desired icon from shell32.dll. However the icon doesn't appear smooth! :S
HICON hItem = ExtractIcon(0, L"C:\\Windows\\system32\\shell32.dll", 8); // Full Path for Shell 32
ImageList_AddIcon( himlIcons, hItem );
DestroyIcon(hItem);Manifest Dependency fixed it!
modified on Thursday, August 19, 2010 1:43 PM
You will run into trouble if you deploy on a machine with the os installed on a different drive or in a different folder. You would be better off using SHGetFolderPath[^] with a
nFolder
value ofCSIDL_WINDOWS
. Then build your path from that. Have look at PathAppend[^] for instance.