nicktherod
Programmer
I have a number of buttons and i want to display bitmaps and not text. I have checked the Bitmap properties for the buttons, but now need to get the bitmaps to appear. Any ideas?
Many Thanks
Many Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CBitmap bmp;
bmp.LoadBitmap(IDB_MYIMAGE);
CWnd* pWnd = GetDlgItem(IDC_MYBUTTON);
ASSERT_VALID(pWnd);
pWnd->SendMessage(BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)bmp.Detach());