MessageBox函数
来源:互联网 发布:tango软件好不好 编辑:程序博客网 时间:2024/06/05 23:05
MessageBox函数用于显示短信息。虽然,MessageBox显示的小窗口没什么功能,实际上它别认为是一个对话框。MessageBox的
syntax
int MessageBox(HWND hWnd,LPCTSTR lpText,LPCTSTR lpCaption,UINT uType)
Example
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;}A:visited { color:#0000ff; text-decoration:underline;}A:hover { color:#3366ff; text-decoration:underline;}MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;}
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;}A:visited { color:#0000ff; text-decoration:underline;}A:hover { color:#3366ff; text-decoration:underline;}MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;} if (fError)
{
if (MessageBox(hwndDlg, SZNOTFOUND, SZDELETEITEM,
MB_OKCANCEL)==IDOK)
{
// Prompt for a new item name and repeat the command.
}
else
{
// Cancel the command.
}
}
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;} A:visited { color:#0000ff; text-decoration:underline;} A:hover { color:#3366ff; text-decoration:underline;} MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;} PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;} A:visited { color:#0000ff; text-decoration:underline;} A:hover { color:#3366ff; text-decoration:underline;} MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;}
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;} A:visited { color:#0000ff; text-decoration:underline;} A:hover { color:#3366ff; text-decoration:underline;} MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;} PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;} A:visited { color:#0000ff; text-decoration:underline;} A:hover { color:#3366ff; text-decoration:underline;} MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;}
- 第一参数通常是窗口句柄。
- 第二参数是在消息框主体中显示的字符串。
- 第三参数是出现在消息框标题列上的字符串。
- 第四个参数可以是WINUSER.H中定义的一组以前缀MB_开始的常数组合。
syntax
int MessageBox(HWND hWnd,LPCTSTR lpText,LPCTSTR lpCaption,UINT uType)
Example
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;}A:visited { color:#0000ff; text-decoration:underline;}A:hover { color:#3366ff; text-decoration:underline;}MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;}
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;}A:visited { color:#0000ff; text-decoration:underline;}A:hover { color:#3366ff; text-decoration:underline;}MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;}
{
if (MessageBox(hwndDlg, SZNOTFOUND, SZDELETEITEM,
MB_OKCANCEL)==IDOK)
{
// Prompt for a new item name and repeat the command.
}
else
{
// Cancel the command.
}
}
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;} A:visited { color:#0000ff; text-decoration:underline;} A:hover { color:#3366ff; text-decoration:underline;} MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;}
PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;} A:visited { color:#0000ff; text-decoration:underline;} A:hover { color:#3366ff; text-decoration:underline;} MSHelp/:link { color:#0000ff; text-decoration:underline; cursor:hand; hoverColor:#3366ff; filterString: ;}
Powered by ScribeFire.
- messagebox函数
- MessageBox函数
- MessageBox函数
- MessageBox() 函数
- messagebox函数
- MessageBox函数
- Messagebox函数
- MessageBox()函数
- MessageBox函数
- MessageBox 函数
- (4)MessageBox函数
- windows函数 MessageBox
- 笔记:MessageBox函数
- MESSAGEBOX 函数用法解析
- MessageBox.Show()函数小解
- (4)MessageBox函数
- MessageBox()API函数
- Windows编程MessageBox函数
- Linux路由表的结构与算法分析
- socket编程原理
- 修改matlab的默认目录
- JavaScript脚本执行的多线程问题
- 揭开socket的面纱
- MessageBox函数
- 祝大家元旦快乐,新年快乐!
- 世界上并没有成为高手的捷径,但一些基本原则是可以遵循的
- 将JAVA程序做成WINDOWS服务的方法
- 外企攻略(转贴)
- Permutation available for duplicate element
- 不要在我寂寞的时候说爱我
- 第一次在这里写东西 留脚印
- 数学之美系列 二十三 输入一个汉字需要敲多少个键 — 谈谈香农第一定律