Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • 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
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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