sv13
October 18th, 2009, 08:15 AM
hi
i can change color with
HWND dh = FindWindow("ProgMan",0);
dh=GetWindow(dh,GW_CHILD);
dh=GetWindow(dh,GW_CHILD);
ListView_SetTextBkColor(dh, CLR_NONE); // icon background to transparent
ListView_SetTextColor (dh, RGB(0,255,0)); // icon text color to rgb()
ListView_RedrawItems (dh, 0, ListView_GetItemCount(dh) - 1); // redraw all icons
everything works fine, but icon background and text color gets back to normal when i refresh desktop(F5), is there a way to change it permanent. Any registry entry where that color is stored?
my program closes itself when it gets the job done, so i cant monitor for desktop refresh and change color then.
i can change color with
HWND dh = FindWindow("ProgMan",0);
dh=GetWindow(dh,GW_CHILD);
dh=GetWindow(dh,GW_CHILD);
ListView_SetTextBkColor(dh, CLR_NONE); // icon background to transparent
ListView_SetTextColor (dh, RGB(0,255,0)); // icon text color to rgb()
ListView_RedrawItems (dh, 0, ListView_GetItemCount(dh) - 1); // redraw all icons
everything works fine, but icon background and text color gets back to normal when i refresh desktop(F5), is there a way to change it permanent. Any registry entry where that color is stored?
my program closes itself when it gets the job done, so i cant monitor for desktop refresh and change color then.