AfxMessageBox...
Hi,
I just want to display a AfxMessageBox() with a diferent background (blue, for instance)...
How do I do that ?
thanks.
[139 byte] By [
raitz] at [2007-11-17 11:49:55]

# 1 Re: AfxMessageBox...
Hi,
The simplest way would be to create a dialog , override OnCtlColor for that dialog and change its color and instead of using AfxMessageBox, you can use your dialog.
Its really worth the effort to write one class for this , bcoz its going to help you in all projects when you want to customize the message box. All Luck.
http://www.geocities.com/contactgirish/homepage.html>> VC++ Links,Code,Tutorials,Downloads & Notes.
If you have some time, you can sign the guestbook there. Thank you.
# 3 Re: AfxMessageBox...
You can use the CWinApp::CWinApp::SetDialogBkColor
to set the bg color for all your dialogs and MessageBoxes
or you can override the default processing with
CWinApp::DoMessageBox .
regards
Prem