摘要:
#include "stdafx.h"//窗口过程函数(系统自动调用,即回调函数)LRESULT WINAPI MsgProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam){ switch(msg){case WM_DESTROY:PostQuitMessage(0);return 0;break;case WM_KEYUP:if(wParam==VK_ESCAPE) PostQuitMessage(0);break;}return DefWindowProc(hWnd,msg,wParam,lParam);}int WIN 阅读全文