Is there a regular / standard way to create an MFC error dialog?

I would like to create a dialog box for my application that displays a message and displays a standard red circle with a white “x” in the middle; It seems to me that this is a fairly standard dialog with windows. I am a little new to MFC, so I don’t know if there is a shortcut to do this other than creating a dialogue resource by copying the red x image from the Microsoft best practices page , including this as an element of the dialogue, and then encoding my own. Surely there is a more standard way to do this?

+3
source share
2 answers
AfxMessageBox(_T("Something bad happened!"), MB_OK | MB_ICONSTOP);

See also AfxMessageBox .

+10

, Windows Vista , CTaskDialog. " " .

+7

All Articles