?
Solved

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

Posted on 1998-10-26
6
Medium Priority
?
207 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
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 

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 100 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

800 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