Not Ready Graphic GDI+
来源:互联网 发布:医院ap网络 编辑:程序博客网 时间:2024/06/14 05:37
CBitmap memBmp;
CBitmap * pBmpOld = NULL;
CFont * pOldFont = NULL;
CPaintDC dc(this); // device context for painting
CRect rectClient;
GetClientRect( &rectClient );
//dc.FillSolidRect(rectClient,RGB(211,211,211));
dc.FillSolidRect(rectClient,RGB(255,255,255));
CRect rect;
GetClientRect(&rect);
CDC memDC;
memDC.CreateCompatibleDC(&dc);
memBmp.CreateCompatibleBitmap(&dc, rect.Width(), rect.Height());
pBmpOld = memDC.SelectObject(&memBmp);
Graphics graphics(memDC.GetSafeHdc());
FontFamily fontFamily(L"宋体");
Font font(&fontFamily, 11, FontStyleBold, UnitPoint);
SolidBrush solidBrush(Color(100,0,0,255));
CString strTmp((LPCTSTR)IDS_GAGEER_STRING_SELFAN);
graphics.DrawString(strTmp, (INT)wcslen(strTmp), &font, PointF(7, 7), &solidBrush);
CString path;
path = m_strCurrentDirectory + _T("\\模型 4-52");
Image img(path.AllocSysString(), TRUE);
graphics.DrawImage(&img, 200, 200, img.GetWidth(), img.GetHeight());
dc.BitBlt(0,0, rect.Width(), rect.Height(), &memDC, 0, 0, SRCCOPY);
memDC.SelectObject(pBmpOld);
memBmp.DeleteObject();
//删除兼容DC
memDC.DeleteDC();
ReleaseDC(&dc);
CBitmap * pBmpOld = NULL;
CFont * pOldFont = NULL;
CPaintDC dc(this); // device context for painting
CRect rectClient;
GetClientRect( &rectClient );
//dc.FillSolidRect(rectClient,RGB(211,211,211));
dc.FillSolidRect(rectClient,RGB(255,255,255));
CRect rect;
GetClientRect(&rect);
CDC memDC;
memDC.CreateCompatibleDC(&dc);
memBmp.CreateCompatibleBitmap(&dc, rect.Width(), rect.Height());
pBmpOld = memDC.SelectObject(&memBmp);
Graphics graphics(memDC.GetSafeHdc());
FontFamily fontFamily(L"宋体");
Font font(&fontFamily, 11, FontStyleBold, UnitPoint);
SolidBrush solidBrush(Color(100,0,0,255));
CString strTmp((LPCTSTR)IDS_GAGEER_STRING_SELFAN);
graphics.DrawString(strTmp, (INT)wcslen(strTmp), &font, PointF(7, 7), &solidBrush);
CString path;
path = m_strCurrentDirectory + _T("\\模型 4-52");
Image img(path.AllocSysString(), TRUE);
graphics.DrawImage(&img, 200, 200, img.GetWidth(), img.GetHeight());
dc.BitBlt(0,0, rect.Width(), rect.Height(), &memDC, 0, 0, SRCCOPY);
memDC.SelectObject(pBmpOld);
memBmp.DeleteObject();
//删除兼容DC
memDC.DeleteDC();
ReleaseDC(&dc);
- Not Ready Graphic GDI+
- $(document).ready diyici$not defined
- fucking, i am not ready
- ubuntu the driver is not ready?
- VMware配置vxlan not ready 解决办法
- “HD controller not ready”的解决方法
- teamviewer Not ready only LAN 无法连接
- $(..).ready()
- $.ready()
- ADDRCONF(NETDEV_UP): eth0: link is not ready | wifi | 未解决|
- $(document).ready is not a function的问题
- $(document).ready is not a function的问题
- Android SoundPool sample 1 not ready错误解决方法
- android播放声音时出现"sample 1 not READY"
- workaround for ubuntu 14.04 team viewer not ready issue
- soundpool 播放无声音 sample 1 not ready
- ANDORID soundpool 播放无声音 sample 1 not ready
- 项目经验分享--$(document).ready is not a function
- NSCoding协议
- OCP-1Z0-051-V9.02-125题
- 《深入理解Java虚拟机》笔记
- Flex 4 SDK – MXML 2009
- 蛇形矩阵的java实现
- Not Ready Graphic GDI+
- 图片
- OCP-1Z0-051-V9.02-126题
- 广播开机自启动
- 皇后问题最快的解法(C语言)八皇后、十六皇后时间在毫秒级
- 提升magento性能的有效方法
- starling 怎样使用输入文本 textinput
- linux下用script和scriptreplay对命令行操作录像
- 状态压缩DP POJ 2411 Mondriaan's Dream