MessageBox

Can you give me an example on how to show a message box with the error symbol on it?

And also provide the other symbols.  Thanks.
Nitro187Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

akalmaniCommented:
Hope this helps u out ?
use the function of CWnd
int MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK );
 
In the type u can specify MB_ICONHAND, MB_ICONSTOP,  MB_ICONERROR for a cross mark in the error message .
MB_ICONQUESTION for a question mark in the error message.
MB_ICONEXCLAMATION and MB_ICONWARNING for a excalmatory mark and
MB_ICONASTERISK and MB_ICONINFORMATION for a question asterik.
many more styles are possible refer for messagebox styles help in msdn

Eg: MessageBox("My Error Message","Error message",MB_OK);
0
Nitro187Author Commented:
Cool, it worked great,  answer the question now, so I can accept  :)


0
sunrajCommented:
MessageBox("Message","Notify",MB_OK|MB_ICONERROR);
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Nitro187Author Commented:
akalmani already answered the question,  i'm waiting for him to answer.

Thanks anyway...

akalmani,  gonna answer?  :)  
0
akalmaniCommented:
One more help i would provide for u is there is also a function
AfxMessageBox("Error Message"); which u can try if necessary
with MessageBox
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nitro187Author Commented:
Oh, thanks  :)

Well the first one you suggested worked great.  Thanks again.

-Nitro
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.