15,979
社区成员
发帖
与我相关
我的任务
分享
//图片显示
CWnd* pic = GetDlgItem(IDC_PICTURE_GOODS);
pic->Invalidate();
Graphics graphics(pic->GetDC()->m_hDC);
wchar_t pWCBuffer[MAX_PATH] = { 0 };
MultiByteToWideChar(0, 0, path, strlen(path) + 1, pWCBuffer, MAX_PATH);
Image GoodsImage(pWCBuffer);
CRect rect;
GetDlgItem(IDC_PICTURE_GOODS)->GetClientRect(&rect);
graphics.DrawImage(&GoodsImage, 0, 0, rect.Width(), rect.Height());