论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > C语言程序设计教程
Tag:新手,函数,指针,数据类型,对象,Turbo,入门,运算符,数组,结构,二级,,tc,游戏,试题,问答,编译,视频教程

MFC MessageBox参考_VC技术_C语言教程

文章类别:C语言程序设计 | 发表日期:2010-6-20 9:32:39

MFC MessageBox参考_VC技术_C语言教程

本文来自21视频教程网C语言频道

 

MB_ICONHAND, MB_ICONSTOP, and MB_ICONERROR

MB_ICONQUESTION

MB_ICONEXCLAMATION and MB_ICONWARNING

MB_ICONASTERISK and MB_ICONINFORMATION

Message_Box Types

·                   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.

Message-Box Modality

·                   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.

Message-Box Icons

·                   MB_ICONEXCLAMATION   An exclamation-point icon appears in the message box.

·                   MB_ICONINFORMATION   An icon consisting of an "i" in a circle appears in the message box.

·                   MB_ICONQUESTION   A question-mark icon appears in the message box.

·                   MB_ICONSTOP   A stop-sign icon appears in the message box.

Message-Box Default Buttons

·                   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.

视频教程列表
文章教程搜索
 
C语言程序设计推荐教程
C语言程序设计热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058