Win32 Messagebox弹出框
mob 发布于 2024-09-25
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                    PSTR szCmdLine, int iCmdShow)
{
    MessageBox(NULL, TEXT("Hello,0"), TEXT("HelloMsg"), 0);

     MessageBox (NULL, TEXT ("Hello, param 1"), TEXT ("HelloMsg"), 1) ;
     MessageBox(NULL, TEXT("Hello, param 2"), TEXT("HelloMsg"), 2);
     MessageBox(NULL, TEXT("Hello, param 3"), TEXT("HelloMsg"), 3);
     MessageBox(NULL, TEXT("Hello, param 4"), TEXT("HelloMsg"), 4);
     MessageBox(NULL, TEXT("Hello, param 5"), TEXT("HelloMsg"), 5);
     MessageBox(NULL, TEXT("Hello, param 6"), TEXT("HelloMsg"), 6);
     MessageBox(NULL, TEXT("Hello, param 7"), TEXT("HelloMsg"), 7);
     MessageBox(NULL, TEXT("Hello, param 8"), TEXT("HelloMsg"), 8);
     return 0 ;
}

代码参考Windows程序设计中的代码,最后参数修改对应的弹出框如下,从0到6对应的弹出框依次如下,7开始没有弹出来

 

mob
关注 私信
文章
66
关注
0
粉丝
0