C++中各种弹出对话框

#include
#include 
 
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);
}

弹出对话框依次为:1~6

你可能感兴趣的:(C++,C++,Popup)