Windows API学习(1)-MessageBox
来源:互联网 发布:手机直播声音软件 编辑:程序博客网 时间:2024/06/05 09:58
#include <windows.h>
#include <iostream.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )
{
char* Content = "MessageBox()函数实例";
char* Caption = "例子";
int MB; //用来接收MessageBox函数返回值
MB = MessageBox(NULL,Content,Caption,MB_OK);
/************************************************************************/
/* 参数1. handle to owner window (窗口句柄,如果没有就设置为NULL)
参数2. text in message box (显示的信息内容)
参数3. message box title (信息框的标题)
参数4. message box style (信息框的风格)
*/
/************************************************************************/
return 0;
}
#include <iostream.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )
{
char* Content = "MessageBox()函数实例";
char* Caption = "例子";
int MB; //用来接收MessageBox函数返回值
MB = MessageBox(NULL,Content,Caption,MB_OK);
/************************************************************************/
/* 参数1. handle to owner window (窗口句柄,如果没有就设置为NULL)
参数2. text in message box (显示的信息内容)
参数3. message box title (信息框的标题)
参数4. message box style (信息框的风格)
*/
/************************************************************************/
return 0;
}
- Windows API学习(1)-MessageBox
- windows学习笔记1——MessageBox
- Windows API MessageBox引起的问题
- EXTJS 学习总结(1) Ext.MessageBox
- Extjs4.1.1API解读之误导篇(Ext.windows.MessageBox⇒buttonText)
- Windows数据类型与API函数(MessageBox函数 和 ReadFile函数)
- 《windows程序设计》(一)-------MessageBox
- Windows API学习(2)-GetVersion
- Windows API学习(3)-GetSystemDirectory
- Windows API学习笔记(1)
- Windows API一日一练(4)MessageBox函数
- Windows API一日一练(4)MessageBox函数
- Windows API入门系列之六 -自己实现MessageBox
- Windows API入门系列之七 -完善MessageBox
- extjs API 学习系列 --Ext.MessageBox 转载学习
- 【C语言】(windows.h)MessageBox函数
- [API] 實作 MessageBox
- MessageBox()API函数
- C++打开浏览目录返回所选择的目录路径
- sps备份数据恢复过程中遇到的问题
- luncene 查询字符串的解析—QueryParser类
- mysql+php乱码原理与解决
- [转]网站二级域名用.net 2.0实现方案
- Windows API学习(1)-MessageBox
- 为什么在java中计算6/3*5的结果是0呢??
- 使用SQL Server 2005 JDBC 连接SQL Server 2008 !
- Fat 文件系统(1)
- 一个使用J2ME技术实现的计算器的代码
- jboss的web service soap:address 的问题
- svg基础 4 坐标和变换
- oracle的监测TABLE数据更改情况
- lucene 一个关键字多字段查询