MessageBox用C/C++实现一个提示信…

来源:互联网 发布:怎样走网络群众路线 编辑:程序博客网 时间:2024/05/22 18:22


//头文件
#include "Windows.h"
#include  "TCHAR.h"
int main()
{

 const wchar_t* mess =_T("在迷茫中追逐....\n在追逐中迷茫.....");
 const wchar_t* title = _T("人生寂寞啊");
 //调用提示信息窗口API
 MessageBox(NULL, //父窗口
  mess, //提示信息
  title, //标题栏
  MB_OK | MB_ICONEXCLAMATION);//按钮和图标

  return 0;
}


MessageBox用C/C++实现一个提示信息的对话框
                 

原创粉丝点击