windows Api 一日一练 (1)

学习自:http://blog.csdn.net/caimouse/article/details/1675586

#include <windows.h>

int WINAPI WinMain( HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // command line
int nCmdShow // show state
)


{
HWND hwnd = GetDesktopWindow();
MessageBoxA(hwnd,"第一个例子","这是标题",MB_OK);
return 0;
}

code::blocks 编译通过

原文地址:https://www.cnblogs.com/rainboy/p/3500825.html