Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the colors of a MessageBox()

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
How would I go about changing the background and text colors of a MessageBox()? Any and all info is greatly appreciated. Thanks in advance.

Niky Williams
NTS Marketing
 
Dear Niky,

Dialog background color and many others are system colors and are controled by the user in their desktop settings. You are not supposed to affect them according to the Windows UI guidlines. If you really want to you can change the system colors programatically, but users will likely not be happy when you do that.

"But, that's just my opinion... I could be wrong".
-pete
 
Yes, I've experimented with changing the system colors...I don't like it myself. I just didn't know if there was a way around this....instead of changing the system colors, just overriding the OnPaint() function somehow to paint JUST message boxes. I guess if nothing else, I could create some Dialog resources and go from there...just a little more work than I wanted though. Thanks for your input. I really appreciate it!!!


Niky Williams
NTS Marketing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top