![]() |
|
#1
|
|||
|
|||
Change MenuBar & ToolBar background colorHi, I wanted to ask is there any other ways to change the background color for MenuBar(whole line of menu bar, including menu item) and also Toolbar background to other colour rather than following window's color scheme ??
I've search for few days, the solution i found is either : 1. Define our own menu [refer to below's link which teaches us to do OwnerDrawMenu http://www.codeguru.com/Cpp/controls/menu/article.php/c3721/ 2. Change the window's settings [This is not really a good approach because it will force all other application to have the same colour] Is there anyone of you able to find other solution rather than these 2 i stated?? Another question, if you tried to go for [1] solution, on that demo, it will only have the background change for menu items ONLY. For the right side of the MenuBar, the colour will keep on the default [which is gray]. Is there any ways to make the whole MenuBar[whole line] to have the colour that i preferred? Any help would be appreciated.. |
|||
|
#2
|
|||
|
|||
Re: Change MenuBar & ToolBar background colorYou don't need owner-draw,
you can do anything with Win32 api (You can ask on specialized Win32 api newsgroup : comp.os.ms-windows.programmer.win32 ) where it has been discussed |
|
#3
|
|||
|
|||
Re: Change MenuBar & ToolBar background colorTo change the background color of MenuBar, simply add the lines of code below, beginning of mainframe OnCreate
CPP / C++ / C Code:
Thanks for those who helped me. I'm giving out the solution i've got. Last edited by admin : 09-Dec-2008 at 03:47.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| triangle (polygon), drawing, sizing, and rotation programme using linked lists... | promsan | C Programming Language | 12 | 14-May-2007 15:03 |
| Change text color in C | IndioDoido | C Programming Language | 2 | 15-Apr-2007 22:58 |
| How do I change the background color of an entire edit control box, not just the... | steph | MS Visual C++ / MFC Forum | 7 | 02-Jun-2006 10:15 |
| change dlg background | inbal79 | MS Visual C++ / MFC Forum | 3 | 19-Mar-2006 07:49 |
| Multi-client application using sockets | shereen | Java Forum | 0 | 03-Mar-2006 10:25 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The