• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

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.
0
kraphics
Asked:
kraphics
  • 4
1 Solution
 
kraphicsAuthor Commented:
Edited text of question
0
 
kraphicsAuthor Commented:
Edited text of question
0
 
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
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
kraphicsAuthor Commented:
arnond's answer did not address the issue of displaying the image data in the static control.
0
 
cramer091498Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now