Menu Bar Color

Posted on 1998-12-15
Last Modified: 2010-05-03
I want to force my menu bar color to be black and my text to be white in my application (I know it sounds hideous, but just trust me..).  Anyhow, is there an API call that can do this, or am I just Out of luck?
Question by:jmalcolm
LVL 12

Expert Comment

ID: 1450295
Menu bar color is global as part of windows general color scheme. You change *YOUR* menu bar, you're changing *EVERY* menu bar. Great way to PO users.



Author Comment

ID: 1450296
Well here's the skinny.  My app doesn't utilize the standard menu bar.  I want a popup menu, and the system colors look horrible with my app.  I want a black pop-up with white text.  I don't want to have to write a workaround like creating my own user control that pops up and I have to write all the functionality.  Any ideas?
LVL 12

Expert Comment

ID: 1450297
Change the systems colors?


How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails


Expert Comment

ID: 1450298
I don't think you're going to have much luck, EXCEPT by making your pop-up menu more of a pop-up Form, which could be any color you wanted....


Expert Comment

ID: 1450299
NO API Calls.... but set the forms Caption to "",
ControlBox to False. Then add a PictureBox with the Align set to "Top", and its backcolor to black (&H00000000&). Voila.

Author Comment

ID: 1450300
I actually wanted to change the menu bar, not the title bar...
LVL 13

Accepted Solution

Mirkwood earned 100 total points
ID: 1450301
In VB it is inpossible. In C++ you could superclass your window and handle the NC paint. Similar like drawing the caption gradient.
But you have to draw it all yourself.

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now