#include "stdafx.h"

#include <windows.h>

 int main(int argc, char* argv[])

 {

//消息框

 int nSelect=::MessageBox(NULL,"hello,windows xp","Greetings",MB_OKCANCEL);

if(nSelect==IDOK)

printf("用户选择了“确定”按钮\n");

else

printf("用户选择了“取消”按钮\n");

return 0; 

 }

posted on 2012-03-16 16:10  IamScree  阅读(340)  评论(0)    收藏  举报