HBITMAP hbitmap=LoadALLPIC(strFilePath,207,190);//如sPath="D:\\f.jpg
CMyCstatic *m_static=(CStatic*)GetDlgItem(IDC_STATIC1);
m_static->ModifyStyle(0xF,SS_BITMAP|SS_CENTERIMAGE);
m_static->SetBitmap(hbitmap);
HBITMAP hbitmap=LoadALLPIC(strFilePath,207,190);//如sPath="D:\\f.jpg
CMyCstatic *m_static=(CStatic*)GetDlgItem(IDC_STATIC1);
m_static->ModifyStyle(0xF,SS_BITMAP|SS_CENTERIMAGE);
m_static->SetBitmap(hbitmap);
转载于:https://www.cnblogs.com/zzili/archive/2012/12/06/6663331.html