Posted on 2012-12-27 15:49
盛胜 阅读(228)
评论(0) 编辑 收藏 引用
CStatic* pStatic = (CStatic*)GetDlgItem(IDC_STATIC_PIC);
HBITMAP hbmp =LoadBitmap(AfxGetApp()->m_hInstance,MAKEINTRESOURCE(IDB_BK_BLACK));
pStatic->ModifyStyle(0xF,SS_BITMAP|SS_CENTERIMAGE);
pStatic->SetBitmap(hbmp);