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.
VGirish at 2007-11-10 8:06:57 >
# 2 Re: AfxMessageBox...
I don't think it is possible to change the AfxMessage Box.If it is possible do let me know..
prasanthnair at 2007-11-10 8:07:57 >
# 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
prem_gali at 2007-11-10 8:08:57 >