C++ School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C++ Expert!

Join 307,080 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,245 people online right now. Registration is fast and FREE... Join Now!




HBITMAP LoadImage Constructor

 

HBITMAP LoadImage Constructor, Loading bitmap in visual c++

niskum

17 May, 2009 - 01:12 AM
Post #1

New D.I.C Head
*

Joined: 17 May, 2009
Posts: 1


My Contributions
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

User is offlineProfile CardPM
+Quote Post


Posts in this topic
niskum   HBITMAP LoadImage Constructor   17 May, 2009 - 01:12 AM
joske   Have a look here for more information on the funct...   17 May, 2009 - 02:54 AM

Reply to this topicStart new topic

Time is now: 11/21/09 10:33AM

Live C++ Help!

Be Social

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

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month