MFC单文档程序 加载图片
CClientDCdc(this);HBITMAPhBmp=(HBITMAP)LoadImage(NULL,"e:\\q.jpg",IMAGE_BITMAP,0,0,LR...
CClientDC dc(this);
HBITMAP hBmp=(HBITMAP)
LoadImage(NULL,"e:\\q.jpg",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
CBitmap bmp;
bmp.Attach(hBmp);
CDC dcBmp;
dcBmp.CreateCompatibleDC(&dc);
dcBmp.SelectObject(&bmp);
dc.BitBlt(0,0,800,600,&dcBmp,0,0,SRCCOPY);
以上这些是我在一个按钮里的,有什么错误 展开
HBITMAP hBmp=(HBITMAP)
LoadImage(NULL,"e:\\q.jpg",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
CBitmap bmp;
bmp.Attach(hBmp);
CDC dcBmp;
dcBmp.CreateCompatibleDC(&dc);
dcBmp.SelectObject(&bmp);
dc.BitBlt(0,0,800,600,&dcBmp,0,0,SRCCOPY);
以上这些是我在一个按钮里的,有什么错误 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询