Place a bitmap from a file into a "static" control

I am using Microsoft Visual C++ 5.0.

I wish to place an image from a file into the client area of a "static" picture frame control.

I would like the code to do this for JPEGs and BMPs.

All of the examples I see will only do this with images that are resource files.
kraphicsAsked:
Who is Participating?
 
cramer091498Connect With a Mentor Commented:
I can see you want someone to write the answr here but it would take pages and pages.
Go to codeguru. There is code there to display a DIB in a static control. A class has been written, allowing you to load DIB files. Try it.

http://www.codeguru.com/staticctrl/index.shtml
0
 
kraphicsAuthor Commented:
Edited text of question
0
 
kraphicsAuthor Commented:
Edited text of question
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
kraphicsAuthor Commented:
I really would like the code to do this, and not a refference to a web page to download a control.

One of the reasons I want the code is to make a control.
0
 
kraphicsAuthor Commented:
arnond's answer did not address the issue of displaying the image data in the static control.
0
All Courses

From novice to tech pro — start learning today.