I got MFC app and I wanted to upload a picture using those 3 lines:
cbitmap_.LoadBitmap(IDB_BITMAP1);
picture_control_.SetBitmap((HBITMAP)cbitmap_.Detach());
UpdateData(FALSE);
When I did it on the main Dialog it worked. I tried to use it on a second Dialog that I open and it doesnt work on load. If I use it with a button on the second dialog it works as well... Where in the cpp file of the second dialog should I paste that code?
Thank you !