School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,162 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,027 people online right now. Registration is fast and FREE... Join Now!



HBITMAP LoadImage Constructor

HBITMAP LoadImage Constructor Loading bitmap in visual c++ Rate Topic: -----

#1 niskum  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 17-May 09


Dream Kudos: 0

Posted 17 May 2009 - 01:12 AM

Hi all !! I m trying to load a Bitmap image through visual c++. By surfing the net, i got these lines to be included in my code.

Can any one please make me understand the arguments of the LoadImage function

<code>

HBITMAP hbitmap=(HBITMAP) ::LoadImage(NULL, filename, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE|LR_CREATEDIBSECTION );

HBITMAP hbitmap=(HBITMAP) ::LoadImage(AfxGetInstanceHandle(), filename, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE|LR_CREATEDIBSECTION);

</code>

Thanks in advance, Please help me in the understading
Was This Post Helpful? 0
  • +
  • -


#2 joske  Icon User is offline

  • D.I.C Regular
  • PipPipPip
  • Group: Members
  • Posts: 280
  • Joined: 04-September 07


Dream Kudos: 0

Posted 17 May 2009 - 02:54 AM

Have a look here for more information on the function LoadImage:
http://msdn.microsof...y/ms648045.aspx
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month