Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I can change the color of messageBoxes in my win32 application. I want the dialog box, buttons and messageboxes to have the same color, but different from the default one. I have gotten information through Google on how to do the other part from message boxes and scrollbars.

So, can someone give some guidiance?

What I have tried:

I have spent a lot of time Googling on the issue.
Posted
Updated 24-Oct-23 10:23am
v2
Comments
[no name] 24-Oct-23 13:00pm    
They're "standard" for a reason ... so users immediately recognize them for what they are.

1 solution

You don't. The standard MessageBox does not expose any functionality to do that.

You would have to create your own dialog class and draw it yourself to change the colors. I don't recommend doing that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900