Solved

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

Posted on 1998-10-26
6
188 Views
Last Modified: 2010-04-06
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
Comment
Question by:kraphics
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 

Author Comment

by:kraphics
ID: 1113097
Edited text of question
0
 

Author Comment

by:kraphics
ID: 1113098
Edited text of question
0
 

Author Comment

by:kraphics
ID: 1113099
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
Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

 

Author Comment

by:kraphics
ID: 1113101
arnond's answer did not address the issue of displaying the image data in the static control.
0
 
LVL 2

Accepted Solution

by:
cramer091498 earned 50 total points
ID: 1113102
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question