3,882
社区成员




HDC hdc=GetDC(hWnd);
Graphics gps(hdc);
char* szFile=new char[256];
for (int i=0;i<256;i++)
{
szFile[i]='\0';
}
WCHAR* wFile=(WCHAR*)szFile;
GetFullPathName(L"res\\KenBG.jpg",128,wFile,0);
Image imgKenBG(wFile); // 加载图片
gps.DrawImage(&imgKenBG,30,30); //显示图片
ReleaseDC(hWnd,hdc);