borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (DocumentProperties and SetPrinter problem)Next Topic (detect mouse cursor change) New Topic New Poll Post Reply
AndreaVB Forum : API : Change Windows Taskbar Color
Poster Message
gvg
Level: Trainee

Registered: 22-02-2005
Posts: 3

icon Change Windows Taskbar Color

Hi,

Can anyone help me to change the windows task bar color programmatically with API calls. It is easy to make it transparent, but I would like to spice it up more by
changing its color too. I know I can change the color of the 3d objects, but it will change it for all the objects and I need it only for the windows task bar. I will greatly appreciate any help.

Regards.

22-02-2005 at 10:46 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Change Windows Taskbar Color

I dont have VB6 with me at the moment, but since you know how to make it transparent (maybe with Setlayeredwindowattributes API), then you know how to track task bar hwnd. I believe that there is a SetBkColor API, that will allow you to change its background color.

____________________________
If you find the answer helpful, please mark this topic as solved.

22-02-2005 at 06:55 PM
View Profile Send Email to User Show All Posts | Quote Reply
gvg
Level: Trainee

Registered: 22-02-2005
Posts: 3
icon Re: Change Windows Taskbar Color

Thanks Goran,

But I can't change the color of the windows calculator even. I need some working code please. I must be doing something wrong here.

Regards,
George,

23-02-2005 at 06:45 AM
View Profile Send Email to User Show All Posts | Quote Reply
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 254
icon Re: Change Windows Taskbar Color

For Windows XP the colors are set by *.themes files. To change the
active-title-bar color, make a copy of
C:\Windows\Resources\Themes\Windows Classic.theme to for example
new.theme, change some settings in it, delete or change the name in
that file (DisplayName=@themeui.dll,-2016)

To copy Windows Classic.theme without the name in it use:
------- on 1 line ! ---------
TYPE "C:\Windows\Resources\Themes\Windows Classic.theme" | FIND/I /V
"DisplayName" >C:\Windows\Resources\Themes\new.theme
-----------------------------

Finally activate it with a small VBS which can be made from a bach
file using:
-----------------------------
>settheme.vbs echo set shell=createobject("wscript.shell")
>>settheme.vbs echo set shell=createobject("wscript.shell")
>>settheme.vbs echo shell.run """C:\Windows\Resources\Themes\New.theme"""
>>settheme.vbs echo WScript.Sleep 1000
>>settheme.vbs echo shell.sendkeys "{ENTER}"
>>settheme.vbs echo wscript.quit
start/w settheme.vbs
-----------------------------


Color changes in the registry are not automaticly updated and will
show up after reboot. To do that from a bachfile use:
-----------------------------
>$SetColor.reg echo Windows Registry Editor Version 5.00
>>$SetColor.reg echo [HKEY_CURRENT_USER\Control Panel\Colors]
>>$SetColor.reg echo "ButtonFace"="172 32 32"
start/w REGEDIT /S $SetColor.reg
-----------------------------

full Windows XP classic color-list:
[HKEY_CURRENT_USER\Control Panel\Colors]
"ActiveBorder"="212 208 200"
"ActiveTitle"="10 36 106"
"AppWorkSpace"="128 128 128"
"Background"="58 110 165"
"ButtonAlternateFace"="181 181 181"
"ButtonDkShadow"="64 64 64"

23-02-2005 at 07:10 AM
View Profile Send Email to User Show All Posts | Quote Reply
gvg
Level: Trainee

Registered: 22-02-2005
Posts: 3
icon Re: Change Windows Taskbar Color

Humberto,

This is great information, thanks, however I do not want to change the color of all the buttons which will happen if I change the colors in the registry or the theme file and that is the reason why I need to be able to do it with API calls.

I did look how the task bar get changed, but I could not find any referense to it.

Regards,
George.

23-02-2005 at 08:10 AM
View Profile Send Email to User Show All Posts | Quote Reply
Splinta
Level: Trainee

Registered: 14-06-2007
Posts: 1
icon Re: Change Windows Taskbar Color

Ok, im new at this and im sick of windows XP and the blue and silver colors, now i would like to know how to change the colors in regedit? And how do you make it transparent?....

Some advice or info or whatever would be gladly appreciated..

14-06-2007 at 07:23 AM
View Profile Send Email to User Show All Posts | Quote Reply
misterxed
Level: VB Lord


Registered: 12-06-2005
Posts: 153
icon Re: Change Windows Taskbar Color

hi splinta

u can make it transparent using the alphablend api... Search ur api libraries for that, u can get the exact code for it....


____________________________
lOsT...

12-07-2007 at 02:57 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Change Windows Taskbar Color
Previous Topic (DocumentProperties and SetPrinter problem)Next Topic (detect mouse cursor change) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder