问题描述
解决方案
BOOL CMy329621200__B_Dlg::OnInitDialog(){CDialog::OnInitDialog();...// TODO: Add extra initialization herem_bmp.ModifyStyle(0,SS_BITMAP);HBITMAP hBmp=LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP1));m_bmp.SetBitmap(hBmp);return TRUE; // return TRUE unless you set the focus to a control}
void CMy329621197____Dlg::OnStaticBmp() {// TODO: Add your control notification handler code hereBITMAP bmp;GetObject(m_bmp.GetBitmap(),sizeof(BITMAP),&bmp);CString msg;msg.Format("Image Size %d*%d",bmp.bmWidth,bmp.bmHeight);AfxMessageBox(msg);}