Solved

how display image at run time in picture control in vc++

Posted on 2006-11-21
2
2,916 Views
Last Modified: 2013-11-20
     HBITMAP      hBitmap;
      hBitmap = (HBITMAP)LoadImage(NULL, "c:\\1.bmp", IMAGE_BITMAP, 0, 0,
  LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE);
m_Picture.SetBitmap(hBitmap);
i use above code but does not disp image on picture control

0
Comment
Question by:yogesh28577
2 Comments
 
LVL 1

Accepted Solution

by:
Mazen earned 20 total points
Comment Utility
Hello,

  Open the properties page of the picture control and change the type from "FRAME" to "Bitmap" and it will work fine.

   Regards,

       Mazen
0
 
LVL 1

Author Comment

by:yogesh28577
Comment Utility
good ok
it solve my problem
plz see my another question

http://www.experts-exchange.com/Programming/Programming_Languages/MFC/Q_22066372.html
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 44
Error on moodle after upgrade 3 105
has22 challenge 11 70
firstChar challenge 13 82
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now