Windows图形设备接口.pptVIP

  • 21
  • 0
  • 约1.82万字
  • 约 53页
  • 2017-03-31 发布于广东
  • 举报
Windows图形设备接口.ppt

1… #includewindows.h 2… #includestdlib.h 3… #includestring.h 4… long WINAPI WndProc(HWND hWnd,UINT iMessage,UINT wParam,LONG lParam); 5… BOOL InitWindowsClass(HINSTANCE hInstance); 6… BOOL InitWindows(HINSTANCE hInstance,int nCmdShow); 7… HWND hWndMain; //主函数 8… int WINAPI W inMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow) 9… { MSG Message; 10… if(!InitWindowsClass(hInstance)) return FALSE; 11… if(!InitWindows(hInstance,nCmdShow)) return FALSE; 12… while(GetMessage(Message,0,0,0)) //消息循环 13… { TranslateMessage(Message); 14… DispatchMe

文档评论(0)

1亿VIP精品文档

相关文档