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

posted on 2018-07-04 10:04  瓦楞球  阅读(2506)  评论(0编辑  收藏  举报