#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++ 对话框
猜你喜欢
转载自www.cnblogs.com/1886vip/p/10662295.html
今日推荐
周排行