Windows编程作业一的代码
https://xxx.ilovefishc.com/forum/201405/06/171556qf76cp1pcx45h8k7.pnghttps://xxx.ilovefishc.com/forum/201405/06/171914o0tq3lx23lx1zq13.png
代码一:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreInstance, LPSTR szCmdLine, int iCmdShow){
MessageBox(NULL,TEXT("这是内容"), TEXT("标题"), MB_ABORTRETRYIGNORE);
return 0;
}
代码二:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreInstance, LPSTR szCmdLine, int iCmdShow){
MessageBox(NULL,TEXT("这是内容"), TEXT("标题"), MB_YESNO);
return 0;
}
代码三:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreInstance, LPSTR szCmdLine, int iCmdShow){
while((MessageBox(NULL,TEXT("这是内容"), TEXT("标题"), MB_YESNO) ) != IDYES){
}
return 0;
}
页:
[1]