[WinAPI] API 2 [MessageBox API][消息框API]

 

 1 /*
 2 调用消息框    MessageBox API
 3 [peoject->set->link->project chose->subsystem:windows]
 4 */
 5 #include<windows.h>
 6 #pragma comment(lib,"User32.lib")
 7 int WinMain(HINSTANCE hInstance,
 8             HINSTANCE hPrevInstance,
 9             LPSTR lpCmdLine,
10             int nCmdShow
11             )
12 {
13     MessageBox(NULL,
14         TEXT("开始学习Windows编程"),
15         TEXT("消息对话框"),
16         MB_OK);
17     return 0;
18 }

 

你可能感兴趣的:(message)