加载非资源图片:
HBITMAP hBitmap1;
hBitmap1=(HBITMAP)::LoadImage(NULL,_T("d://1.bmp"),IMAGE_BITMAP,0,
0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);
((CButton*)GetDlgItem(IDC_BUTTON1))->SetBitmap(hBitmap1);加载非资源图片:
HBITMAP hBitmap1;
hBitmap1=(HBITMAP)::LoadImage(NULL,_T("d://1.bmp"),IMAGE_BITMAP,0,
0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);
((CButton*)GetDlgItem(IDC_BUTTON1))->SetBitmap(hBitmap1);