#include<windows.h>
#include<cstdio>
int main(){
int x;
x=MessageBox(GetForegroundWindow(),"【标题】","【要说的话】",1);
printf("%d\n",x);
x=MessageBox(GetForegroundWindow(),"【标题】","【要说的话】",2);
printf("%d\n",x);
x=MessageBox(GetForegroundWindow(),"【标题】","【要说的话】",3);
printf("%d\n",x);
x=MessageBox(GetForegroundWindow(),"【标题】","【要说的话】",4);
printf("%d\n",x);
x=MessageBox(GetForegroundWindow(),"【标题】","【要说的话】",5);
printf("%d\n",x);
x=MessageBox(GetForegroundWindow(),"【标题】","【要说的话】",6);
printf("%d\n",x);
}
MFC中弹出消息框
最新推荐文章于 2024-06-14 21:16:48 发布