VisualC++面向对象与可视化程序设计03Windows的图形设备接口及windows绘图.ppt

VisualC++面向对象与可视化程序设计03Windows的图形设备接口及windows绘图.ppt

第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)

1亿VIP精品文档

相关文档