AfxMessageBox
来源:互联网 发布:南昌优化网站方法 编辑:程序博客网 时间:2024/05/16 09:39
int AfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 ); |
MB_ABORTRETRYIGNORE The message box contains three pushbuttons: Abort, Retry, and Ignore.
MB_OK The message box contains one pushbutton: OK.
MB_OKCANCEL The message box contains two pushbuttons: OK and Cancel.
MB_RETRYCANCEL The message box contains two pushbuttons: Retry and Cancel.
MB_YESNO The message box contains two pushbuttons: Yes and No.
MB_YESNOCANCEL The message box contains three pushbuttons: Yes, No, and Cancel.
MB_APPLMODAL The user must respond to the message box before continuing work in the current window. However, the user can move to the windows of other applications and work in those windows. The default is MB_APPLMODAL if neither MB_SYSTEMMODAL nor MB_TASKMODAL is specified.
MB_SYSTEMMODAL All applications are suspended until the user responds to the message box. System-modal message boxes are used to notify the user of serious, potentially damaging errors that require immediate attention and should be used sparingly.
MB_TASKMODAL Similar to MB_APPLMODAL, but not useful within a Microsoft Foundation class application. This flag is reserved for a calling application or library that does not have a window handle available.
MB_DEFBUTTON1 The first button is the default. Note that the first button is always the default unless MB_DEFBUTTON2 or MB_DEFBUTTON3 is specified.
MB_DEFBUTTON2 The second button is the default.
MB_DEFBUTTON3 The third button is the default.
Zero if there is not enough memory to display the message box; otherwise, one of the following values is returned:
IDABORT The Abort button was selected.
IDCANCEL The Cancel button was selected.
IDIGNORE The Ignore button was selected.
IDNO The No button was selected.
IDOK The OK button was selected.
IDRETRY The Retry button was selected.
IDYES The Yes button was selected.
Example
// A simple message box, with only the OK button.AfxMessageBox(_T("Simple message box."));// A message box that uses a string from a string table// with yes and no buttons and the stop icon.// NOTE: nStringID is an integer that contains a valid id of// a string in the current resource.AfxMessageBox(nStringID, MB_YESNO|MB_ICONSTOP); |
- AfxMessageBox
- AfxMessageBox
- AfxMessageBox
- AfxMessageBox
- AfxMessageBox
- AfxMessageBox
- AfxMessageBox
- AfxMessageBox问题
- AfxMessageBox函数
- VC++------------AfxMessageBox
- 打造自定义的AfxMessageBox
- 打造自定义的 AfxMessageBox
- AfxMessageBox的问题
- AfxMessageBox字符问题
- 打造自定义的 AfxMessageBox
- AfxMessageBox()与MessageBox()
- AfxMessageBox和MessageBox区别
- AfxMessageBox字符问题
- Hibernate的缓存机制
- Hibernate获取数据方式与缓存使用
- SQL Server User-defined Function Create and Call 與Stored Procedures 不同
- [分享]Excel VBA的单元格用法
- 人生的八个致命问题
- AfxMessageBox
- 2008.10.20 多云
- Head First C# 中文版 图文皆译 (page38)
- ECLIPSE + MYECLIPSE 格式化 JAVA 和 HTML 代码,将其显示在一行中
- 解决制作托盘气泡提示中遇到的'NIF_INFO' : undeclared identifier
- Struts异常
- 毕业奋斗八年成功后有感,给年轻人的10个忠告
- MVP入门
- 我是才开始学习VB的,哪位好心的耐心的朋友愿意收我作学生?