Solved

Menu Bar Color

Posted on 1998-12-15
7
246 Views
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?
0
Comment
Question by:jmalcolm
7 Comments
 
LVL 12

Expert Comment

by:mark2150
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.

M

0
 

Author Comment

by:jmalcolm
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?
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1450297
Change the systems colors?

M

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Expert Comment

by:thespis
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....

T
0
 
LVL 2

Expert Comment

by:mannen
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.
0
 

Author Comment

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

Accepted Solution

by:
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.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

778 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