#include <windows.h>#include <iostream.h>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )...{ char* Content = "MessageBox()函数实例"; char* Caption = "例子"; int MB; //用来接收MessageBox函数返回值 MB = MessageBox(NULL,Content,Caption,MB_OK); /**//************************************************************************/ /**//* 参数1. handle to owner window (窗口句柄,如果没有就设置为NULL) 参数2. text in message box (显示的信息内容) 参数3. message box title (信息框的标题) 参数4. message box style (信息框的风格) */ /**//************************************************************************/ return 0;}