15,979
社区成员
发帖
与我相关
我的任务
分享
CDC * cdc = GetDC();
Graphics graphics(cdc->m_hDC);
CRect rect;
GetClientRect(&rect);
Bitmap * bmp = new Bitmap(rect.Width(),rect.Height());
Graphics * dc = graphics.FromImage(bmp);
dc->DrawString(wszUtf8, -1, &font, PointF(vecDrawPoint[0].beginPoint.x, vecDrawPoint[0].beginPoint.y), &textBrush);
graphics.DrawImage(bmp, 0,0);