CString strPath;
strPath=".//image//bmp1.bmp";
CRect rect;
GetDlgItem(IDC_PICTURE)->GetWindowRect(&rect);
HBITMAP hBmpLun= (HBITMAP)::LoadImage(NULL,str,IMAGE_BITMAP,rect.Width(),rect.Height(),LR_LOADFROMFILE);
((CStatic* )GetDlgItem(IDC_PICTURE))->SetBitmap((HBITMAP)hBmpLun); //IDC_PIC是圖片框ID
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點(diǎn)擊舉報。