CStatic *pStatic1 = (CStatic *)GetDlgItem(IDC__IMAGE_STATIC2); CBitmap cbmp; cbmp.LoadBitmap(MAKEINTRESOURCE(IDB_BITMAP1)); pStatic1->ModifyStyle(0xF,SS_BITMAP|SS_CENTERIMAGE); pStatic1->SetBitmap((HBITMAP)cbmp);
https://bbs.csdn.net/topics/391892471?page=1