MessageBox用法详解
CString str=_T("HelloWorld");
MessageBox(str, _T("提示!"))

CString str=_T("HelloWorld");
MessageBox(str, _T("提示"), MB_ICONINFORMATION);
或者
MessageBox(NULL,str, _T("提示") ,MB_ICONINFORMATION);

MessageBox(str, _T("提示"), MB_ICONHAND);

MessageBox(str, _T("提示"), MB_ICONQUESTION);

MessageBox(str, _T("提示"), MB_ICONEXCLAMATION);

MessageBox(str, _T("提示"), MB_ICONINFORMATION | IDRETRY);

MessageBox(str, _T("提示"), MB_ICONINFORMATION | IDIGNORE);

MessageBox(str, _T("提示"), MB_ICONINFORMATION | IDCANCEL);

MessageBox(str, _T("提示"), MB_ICONINFORMATION | IDOK);

MessageBox(str, _T("提示"), MB_ICONINFORMATION | IDYES);
