码迷,mamicode.com
首页 > 编程语言 > 详细

C++ 对话框

时间:2019-04-06 19:18:18      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:ace   can   放弃   using   names   clu   class   ++   include   

#include <windows.h>
#include <iostream>
#include <cstdio> 
using namespace std;

int main(){

    int res;

    res=MessageBox(NULL,"我是正文我是正文我是正文我是正文","标题",MB_OK );
    cout << res;
    cout << "\n";
    res=MessageBox(NULL,"我是正文我是正文我是正文我是正文","标题",MB_YESNO );
    cout << res;
    cout << "\n";
    res=MessageBox(NULL,"我是正文我是正文我是正文我是正文","标题",MB_ABORTRETRYIGNORE );
    cout << res;
    cout << "\n";
    res=MessageBox(NULL,"我是正文我是正文我是正文我是正文","标题",MB_YESNOCANCEL );
    cout << res;
    cout << "\n";
    res=MessageBox(NULL,"我是正文我是正文我是正文我是正文","标题",MB_RETRYCANCEL );
    cout << res;
    cout << "\n";
    res=MessageBox(NULL,"我是正文我是正文我是正文我是正文","标题",MB_OKCANCEL );
    cout << res;
    cout << "\n";

    return 0;
}

//确定:1
//取消:2
//放弃:3
//重试:4
//跳过:5
//是:6
//否:7

 

C++ 对话框

标签:ace   can   放弃   using   names   clu   class   ++   include   

原文地址:https://www.cnblogs.com/1886vip/p/10662295.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!