第4章 GDI及windows绘图 第4章 GDI及Windows绘图 Huang Weitong #includewindows.h #includestdlib.h #includestring.h long WINAPI WndProc(HWND hWnd,UINT iMessage,UINT wParam,LONG lParam); BOOL InitWindowsClass(HINSTANCE hInstance); BOOL InitWindows(HINSTANCE hInstance,int nCmdShow); HWND hWndMain; //主函数 int WINAPI W inMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow) { MSG Message; if(!InitWindowsClass(hInstance)) return FALSE; if(!InitWindows(hInstance,nCmdShow)) return FALSE; while(GetMessage(Message,0,0,0)) //消息循环 { TranslateMessage(Messa
原创力文档

文档评论(0)