Study Note of use of MessageBox() and its surrounding information(MFC)
来源:互联网 发布:数字音频矩阵 品牌 编辑:程序博客网 时间:2024/04/29 21:15
The MessageBox function has three arguments,first points to the information shown to the user, second one relates to the title(optional), last one specifies the types of buttons and icon on the dialog window. The detailed information is as follows:
MESSAGEBOX BUTTON COMBINATION IDS.
ID Buttons MB_ABORTRETRYIGNORE Abort, Retry, Ignore MB_OK OK MB_OKCANCEL OK, Cancel MB_RETRYCANCEL Retry, Cancel MB_YESNO Yes, No MB_YESNOCANCEL Yes, No, Cancel MESSAGEBOX ICON IDS.
ID Icon MB_ICONINFORMATION Informational icon MB_ICONQUESTION Question mark icon MB_ICONSTOP Stop sign icon MB_ICONEXCLAMATION Exclamation mark icon MESSAGEBOX RETURN VALUE IDS.
ID Button Clicked IDABORT Abort IDRETRY Retry IDIGNORE Ignore IDYES Yes IDNO No IDOK OK
IDCANCEL
Cancel
Example:
void CDialogsDlg::OnButton1()
{
// TODO: Add your control notification handler code here
if (MessageBox("您好!","标题?",MB_YESNOCANCEL|MB_ICONQUESTION)==IDYES)
MessageBox("ok");
}
- Study Note of use of MessageBox() and its surrounding information(MFC)
- Information About The Space of MFC and C#,ASP.NET
- The Study of Programming Windows with MFC--Imagelist and ComboBoxEx
- Use of MFC
- Study Note: 1. Introduction of pattern recognition.
- Study Note: Instruction Optimisation of CUDA programming
- Comparsion:The use of open source GIS software and its commercial counterparts
- study note of "Zend PHP 5 Certification Study "--array
- study note of "Zend PHP 5 Certification Study "--OOP
- C Language Study - the use of symbol '##'
- Note of DNS and BIND
- use of MFC 工程属性
- The study of Programming Windows with MFC
- Of Study
- The study of chapter 13 in programming windows with mfc-printing with document and views
- The Study of Programming Windows with MFC--Progress and Animate control
- The study of Programming Windows with MFC--Ip Address control and Date control
- ORA-15027: active use of diskgroup "TEST" precludes its dismount
- 在VS2005下编译emule
- 孤独的人。。。
- 浅谈多层分布式体系技术与应用(中间件)
- IDG和虚拟货币
- 与服务器奋战的两天两夜 - 流水账未删节版
- Study Note of use of MessageBox() and its surrounding information(MFC)
- 《象雾象雨又象风》:不想说再见
- 黄远东
- 黄远东
- 黄远东
- 黄远东
- 黄远东
- Use of Common Dialogs (offered by the operating system)
- 黄远东