Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2929
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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