显示在消息框中的按钮CString str1; str1.format(_t ) MB_abortretryignore )、height和width ); //消息框包含三个按钮: Abort、Retry和ignoreafxmessagebox(str1,MB _ abortretryignore|MB _ icon information,0 )
CString str2; str2.format(_t ) MB_canceltrycontinue )、height和width ); //消息框包含三个按钮:取消,再试一次,然后继续afxmessagebox(str2,MB _ canceltrycontinue|MB _ icon warning,0 )
CString str3; str3.格式(t ) MB_help )、height、width ); //消息框包含确定和帮助afxmessagebox(str3,MB_HELP | MB_ICONWARNING,0 )的两个按钮。
CString str4; str4.format(_t )、MB_ok )、height和width ); //消息框包含用于确认afxmessagebox(str4,MB_OK | MB_ICONWARNING,0 )的按钮。
CString str5; str5.格式(t ) MB_okcancel )、height、width ); //消息框包含两个用于确认和取消afxmessagebox(str5,MB_OKCANCEL | MB_ICONWARNING,0 )的按钮。
CString str6; str6.格式(t ) MB_retrycancel )、height、width ); //消息框包含两个按钮:重试和取消afxmessagebox(str6,MB_RETRYCANCEL | MB_ICONWARNING,0 )。
CString str7; str7.format(_t(MB_yesno )、height和width ); //消息框包含两个按钮:是和否noafxmessagebox(str7,MB_YESNO | MB_ICONWARNING,0 )。
CString str8; str8.格式(t ) MB_yesnocancel )、height、width ); //消息框包含三个按钮:是、否和afxmessagebox(str8,MB_YESNOCANCEL | MB_ICONWARNING,0 )。
消息框中显示图标CString str9; str9.format(_t ) MB_iconexclamation )、height和width ); //在消息框中显示感叹号图标afxmessagebox(str9,MB_OK | MB_ICONEXCLAMATION,0 );
CString str10; str10.format(_t(MB_iconwarning )、height和width ); //消息框中显示感叹号图标afxmessagebox(str10,MB_OK | MB_ICONWARNING,0 )。
CString str11; str11.format(_t ) MB_iconinformation )、height和width ); //消息框中显示由圆圈中的小写字母I组成的图标afxmessagebox(str11,MB_OK | MB_ICONINFORMATION,0 )。
CString str12; str 12.format (_ t (MB _ icon asterisk ) )、height、width ); //消息框中显示由圆圈中的小写字母I组成的图标afxmessagebox(str12,MB_HELP | MB_ICONASTERISK,0 )。
CString str13; str 13.format (_ t (MB _ icon question )、height和width ); //在消息框中显示问号图标afxmessagebox(str13,MB_HELP | MB_ICONQUESTION,0 );
CString str14; str14.format(_t(MB_iconstop )、height和width ); //消息框中显示停止标志图标afxmessagebox(str14,MB_HELP | MB_ICONSTOP,0 )。
CString str15; str 15 .格式(t ) MB_iconerror )、height、width ); //消息框中显示停止标志图标afxmessagebox(str15,MB_HELP | MB_ICONERROR,0 )。
CString str16; str16.format(_t(MB_iconhand )、height和width ); //消息框中显示停止标志图标afxmessagebox(str16,MB_HELP | MB_ICONHAND,0 )。