2786| 4
|
【求助】C++怎么让一个图片显示到窗口里面 |
5鱼币
最佳答案CDC memDC;
memDC.CreateCompatibleDC(pDC);
BITMAP bmp;
CBitmap bkImg;
bkImg.LoadBitmap(IDB_BK_IMG);
bkImg.GetBitmap(&bmp);
memDC.SelectObject(&bkImg);
//SetWindowPos(NULL, 0, 0, bmp.bmWidth, bmp.bmHeight, SWP_NOMOVE|SWP_NOZORDER);
CRect rect;
GetClientRect(&rect);
pDC->StretchBlt(0, 0, rect.Width(), rect.Height(), &memDC, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY);
memDC. ...
| ||
小甲鱼最新课程 -> https://ilovefishc.com
|
||
| ||
小甲鱼最新课程 -> https://ilovefishc.com
|
||
| ||
小甲鱼最新课程 -> https://ilovefishc.com
|
||
| ||
小甲鱼最新课程 -> https://ilovefishc.com
|
||
小黑屋|手机版|Archiver|鱼C工作室
( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-6-10 09:39
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.