19,472
社区成员




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;