Can anybody help me with the following problem:

In my latest project I added some colors to my menu using SetSysColors function. The menu's background is black with white and gray text on it so it blends nicely with the graphix in the window. In Win2000 this works fine as I get the wanted result -> a fully black menu-bar and black pop-up's. But in Win-XP however the result is different although it is the complete same program running -> in XP the menu-bar stays gray! And only the pop-up's are colored black !! To me this is weird. Anyone who knows how this happens and/or can give me a solution to paint my XP menu-bar black as well ?

Thanx in advance

Greetings everybody!

Lovesong.:confused:
Posted on 2004-02-02 16:12:48 by lovesong
I'm using GetSysColorBrush+FillRect to paint menu in XP, no problem so far :)
Posted on 2004-02-03 04:06:58 by masquer
Thanx for your reply masquer!

but could you be more specific in what you mean with using Fillrect. Do you mean you paint in non-client-area during ncpaint-message ?
to illustrate my problem I send this picture of the problem at hand. On the left the result of my code in Win2000 with the desired effect. On the right the problem I have in XP. The menu-bar doesn't turn black and makes the menu-commands as good as unreadable....

How can I solve this ??

Thanx in advance,

Lovesong.

:sweat:
Posted on 2004-02-04 09:24:18 by lovesong
I'm mislead myself and mislead you. I was thinking we are talking about menu windows and not about menu bar. I'm using rebars for that and for your case I can't suggest you off-hand. Try to remove your manifest and see if it help.
Posted on 2004-02-05 09:08:13 by masquer
Hi Masquer,

What do you mean with 'manifest'? could you give me some info about that.

Thanx & greetings,


Lovesong. ;)
Posted on 2004-02-06 05:30:12 by lovesong
Hm, better use search for manifest. This is new resource type introduced in WinXP, in short.
Posted on 2004-02-06 09:23:14 by masquer
Thank you for your advice masquer!

I allready gathered some info about XP-manifest and will test around with that first. Guess it might fix the problem...

Friendly greetings,

Lovesong ;)
Posted on 2004-02-07 02:31:44 by lovesong