MFC中怎么导入多个位图啊,新手刚学。。。 MFC中怎么导入多个位图啊,用BITBLT好像会出现DC重复使用的问题啊,大神求解啊,新手刚学 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 显示到MFC中要进过程序吗这样就出问题了CBitmap bitmap; bitmap.LoadBitmap(IDB_BITMAP9);//显示页面的位图 BITMAP bmp; bitmap.GetBitmap(&bmp); int w=bmp.bmWidth; int h=bmp.bmHeight; CDC dc; dc.CreateCompatibleDC(pDC); dc.SelectObject(&bitmap); pDC->BitBlt(900,0,w,h,&dc,0,0,SRCCOPY); CBitmap bitmap1; bitmap.LoadBitmap(IDB_BITMAP1);// BITMAP bmp1; bitmap.GetBitmap(&bmp1); int k=bmp1.bmWidth; int n=bmp1.bmHeight; CDC dc1; dc.CreateCompatibleDC(pDC); dc.SelectObject(&bitmap1); pDC->BitBlt(50,360,k,n,&dc1,0,0,SRCCOPY);这样的导入两个位图怎么就不行呢 MFC中图形操作必然要使用双缓冲滴。对CDC的操作一定要有始有终。 CBitmap bitmap1; bitmap.LoadBitmap(IDB_BITMAP1);// 你这里确定不是bitmap1么? BITMAP bmp1; bitmap.GetBitmap(&bmp1); //这里也是 int k=bmp1.bmWidth; int n=bmp1.bmHeight; CDC dc1; dc.CreateCompatibleDC(pDC); dc.SelectObject(&bitmap1); pDC->BitBlt(50,360,k,n,&dc1,0,0,SRCCOPY);楼主代码就写错了。 MFC CDialog中画图问题 接收音视频数据时,视频数据接收一段时间后不能再接收,音频正常? 人脸识别系统 学习图形编程需要看什么资料 vc中如何将一个界面(可能对话框)添加到另一个界面中? typedef std::map FontMap; 应该包含那个头文件? 关于串口和dialog中使用控件的两个小问题。 网络异常时引起数据库更新错误,高手快帮帮忙,就知者帮Up,人皆有分 各位高手,帮我看一下我应聘公司有前途吗? 动态生成,如何处理消息??? 一个简单的多线程问题 求助,发生abnormal program termination错误
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP9);//显示页面的位图
BITMAP bmp;
bitmap.GetBitmap(&bmp);
int w=bmp.bmWidth;
int h=bmp.bmHeight;
CDC dc;
dc.CreateCompatibleDC(pDC);
dc.SelectObject(&bitmap);
pDC->BitBlt(900,0,w,h,&dc,0,0,SRCCOPY); CBitmap bitmap1;
bitmap.LoadBitmap(IDB_BITMAP1);//
BITMAP bmp1;
bitmap.GetBitmap(&bmp1);
int k=bmp1.bmWidth;
int n=bmp1.bmHeight;
CDC dc1;
dc.CreateCompatibleDC(pDC);
dc.SelectObject(&bitmap1);
pDC->BitBlt(50,360,k,n,&dc1,0,0,SRCCOPY);
这样的导入两个位图怎么就不行呢
bitmap.LoadBitmap(IDB_BITMAP1);// 你这里确定不是bitmap1么?
BITMAP bmp1;
bitmap.GetBitmap(&bmp1); //这里也是
int k=bmp1.bmWidth;
int n=bmp1.bmHeight;
CDC dc1;
dc.CreateCompatibleDC(pDC);
dc.SelectObject(&bitmap1);
pDC->BitBlt(50,360,k,n,&dc1,0,0,SRCCOPY);楼主代码就写错了。