1、首先添加winmain主函数,这是win32入口函数
2、然后添加win32准备代码
3、然后添加while消息循环代码块
4、然后添加MyRegisterClass函数
5、然后添加WndProc函数
6、最后运行程序看看效果