I need to display a JPEG image on the face of a button control added onto FormView.
The problem I faced is incorporating the .jpeg images into the .rc file. Something stops me from displaying the image. I am getting a blank control. (I set the button to owner draw of course.)
I tried using a picture control over the button control and it still wont display the resource.
There is no MFC feature pack.
A couple of things to check/try. Are you using the GDI+ bitmap to draw the bitmap? If not, that’s probably the best way. Alternatively I’d recommend FreeImage to load it into a CBitmap as I’ve always found it very straightforward to use. Secondly, make sure you store your jpeg as a “JPG” type in your .rc file. If you try and store it as a BITMAP resource then you’ll have all sorts of problems.