Valhalla Legends Archive

Programming => General Programming => Topic started by: haZe on February 13, 2003, 09:08 AM

Title: Menu Bar Colors
Post by: haZe on February 13, 2003, 09:08 AM
Is it possible to make the menubar with a black background and a white forecolor instead of the grayish background with black text?
Please only reply if your going to help.
Title: Re: Menu Bar Colors
Post by: Noodlez on February 13, 2003, 10:00 AM
http://forum.valhallalegends.com/?board=general_prog;action=display;num=1044420275
Title: Re: Menu Bar Colors
Post by: haZe on February 13, 2003, 02:31 PM
i couldnt find it on there......
Title: Re: Menu Bar Colors
Post by: Ickypoopy on February 13, 2003, 02:44 PM
You have to process the WM_CTLCOLORSCROLLBAR message, and return a handle to the brush to color it.
Title: Re: Menu Bar Colors
Post by: haZe on February 14, 2003, 01:20 AM
wha? lol
Title: Re: Menu Bar Colors
Post by: Ickypoopy on February 14, 2003, 04:48 AM
Whenever your program receives that message, you need to specify a return value that is a handle to the brush you want to color it with.
Title: Re: Menu Bar Colors
Post by: haZe on February 14, 2003, 10:10 AM
could u plz tell me how to do that?
is all i do is put
CALL WM_CTLCOLORSCROLLBAR
?
a little more help plz
Title: Re: Menu Bar Colors
Post by: Yoni on February 14, 2003, 10:20 AM
It's not a function; it's a Windows message constant for the SendMessage function.

Read here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/MessagesandMessageQueues/MessagesandMessageQueuesReference/MessagesandMessageQueuesFunctions/SendMessage.asp

And here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarmessages/wm_ctlcolorscrollbar.asp

And in general here:
http://msdn.microsoft.com/library/default.asp

(Memorize the last URL for best results)