• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2931
  • Last Modified:

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

     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
yogesh28577
Asked:
yogesh28577
1 Solution
 
MazenCommented:
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
 
yogesh28577Author Commented:
good ok
it solve my problem
plz see my another question

http://www.experts-exchange.com/Programming/Programming_Languages/MFC/Q_22066372.html
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

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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