Page 1 of 1

Changing Desktop Icon Label color [Windows]

Posted: Wed Sep 05, 2012 4:38 pm
by RASHAD
Tested with PB 4.61 x86 Windows 7 x64
Remember to disable F5(Do not refresh Desktop) :mrgreen:

Code: Select all

dWall$ = Space(512)
SystemParametersInfo_(#SPI_GETDESKWALLPAPER, 512, @dWall$, 0)
hwnd = FindWindow_("ProgMan","Program Manager")
hwnd =  GetWindow_(hwnd,#GW_CHILD)
hwnd =  GetWindow_(hwnd,#GW_CHILD)                
SendMessage_(hwnd,#LVM_SETEXTENDEDLISTVIEWSTYLE,0,0)
SendMessage_(hwnd,#LVM_SETEXTENDEDLISTVIEWSTYLE,#LVS_EX_SNAPTOGRID,#LVS_EX_SNAPTOGRID)
SendMessage_(hwnd,#LVM_SETEXTENDEDLISTVIEWSTYLE,#LVS_EX_LABELTIP,#LVS_EX_LABELTIP)
SystemParametersInfo_(#SPI_SETDESKWALLPAPER, 0, Dwall$, #SPIF_UPDATEINIFILE | #SPIF_SENDWININICHANGE)
SetWindowTheme_(hwnd, @null.w, @null.w)
SendMessage_(hwnd,#LVM_SETTEXTCOLOR,#Null,$13F8FD)
InvalidateRect_(hwnd,#Null,#True)


Re: Changing Desktop Icon Label color [Windows]

Posted: Wed Sep 05, 2012 4:44 pm
by IdeasVacuum
Take care, SendMessage_(hwnd,#LVM_SETEXTENDEDLISTVIEWSTYLE,#LVS_EX_SNAPTOGRID,#LVS_EX_SNAPTOGRID) will also re-arrange your icons.

Re: Changing Desktop Icon Label color [Windows]

Posted: Wed Sep 05, 2012 4:50 pm
by RASHAD
It is only for fun :)
Do not take it seriously(Do not mess with Windows)

Re: Changing Desktop Icon Label color [Windows]

Posted: Fri Sep 07, 2012 2:12 pm
by Kwai chang caine
Waouuuh top cool !!! :D
I have tried all the color of the rainbow and that's works fine on VISTA
I'm happy i have now a multicolor desktop in bulk now :lol: :lol:
Thanks RASHAD for sharing this cool tips 8)