?
Solved

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

Posted on 2006-11-21
2
Medium Priority
?
2,924 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
[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
2 Comments
 
LVL 1

Accepted Solution

by:
Mazen earned 80 total points
ID: 17989357
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
ID: 17993381
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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

762 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