19,468
社区成员
发帖
与我相关
我的任务
分享
CClientDC *pDC = new CClientDC(GetDlgItem(IDC_LOGO));
CRect rect;
GetDlgItem(IDC_LOGO)->GetWindowRect(&rect);
Graphics graphics(pDC->m_hDC); // Create a GDI+ graphics object
Image image(_T("E:\\icon1.png")); // Construct an image
graphics.DrawImage(&image, 0, 0, image.GetWidth(), image.GetHeight());
delete pDC;