C++设计的愤怒的小鸟桌面
文件大小: 6k
源码售价: 10 个金币 积分规则     积分充值
资源说明:BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) 81.{ 82. HBITMAP bmp; 83. hInst = hInstance; 84. 85. hWnd = CreateWindow("canvas", "浅墨的窗口" , WS_OVERLAPPEDWINDOW, 86. CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); 87. 88. if (!hWnd) 89. { 90. return FALSE; 91. } 92. 93. MoveWindow(hWnd,10,10,600,450,true); 94. ShowWindow(hWnd, nCmdShow); 95. UpdateWindow(hWnd); 96. 97. hdc = GetDC(hWnd); 98. mdc = CreateCompatibleDC(hdc); 99. bufdc = CreateCompatibleDC(hdc); 100. bmp = CreateCompatibleBitmap(hdc,640,480); 101. 102. SelectObject(mdc,bmp); 103. 104. bg = (HBITMAP)LoadImage(NULL,"bg.bmp",IMAGE_BITMAP,640,480,LR_LOADFROMFILE); 105. bird = (HBITMAP)LoadImage(NULL,"angrybird.bmp",IMAGE_BITMAP,120,60,LR_LOADFROMFILE); 106. 107. GetClientRect(hWnd,▭); //取得内部窗口区域的大小 108. MyPaint(hdc); 109. 110. return TRUE; 程序编的还是不错的啊!
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。