Icons in TreeView
Posted on 2002-04-11
My TreView shows icons with black background.
I made background transparent, it looks transparent in Windows Explorer and I want it to be transparent in my TreeView. This is the code:
g_himl = ImageList_Create(16, 16, ILC_COLOR4, 1, 1);
hicon = LoadIcon(g_hInst, MAKEINTRESOURCE(ICO_MyComp));
iMyComp = ImageList_AddIcon(g_himl, hicon);
TreeView_SetImageList(g_hwndTree, g_himl, VSIL_NORMAL);