|
From: Gregor P. <Gre...@dl...> - 2001-06-23 20:41:24
|
Hmmm, the LoadImage( ... ) is a part of the Programmers Reference but returns (just) a HANDLE . What I need is a pointer to a BITMAPFILEHEADER to get some informations SetDIBBitsToDevice( ... ) needs to be able to display the loaded Image. I can't find any informations about HANDLEs in the Windows API reference. Is it possible to feed the BITMAPFILEHEADER structure via this HANDLE? Gregor -------- schnipp ---------- Jose Manuel Padron Carrillo wrote: > Hi, > > I think you're using a user defined function. That function is not in > the Windows API reference. Instead you can use LoadImage(). See below. > > --- Gregor Peter <Gre...@dl...> escribió: > Hi there, > > > > I like to display some Images, the examples in my books are using the > > function > > DibLoadImage( szFileName ) > > from the header file > > dibfile.h > > > > like > > # include "dibfile.h" > > BITMAPFILEHEADER* pbmfh; > > > > pbmfh = DibLoadImage( "myPic.bmp" ); > > ... > > > > The Borland Win32 Programmer Reference doesn't know such a function > > and > > Dev-C++ nothing about such a headerfile. > > > > Does someone know what to do? > > The LoadImage function loads an icon, cursor, or bitmap. > > HANDLE LoadImage( > > HINSTANCE hinst, // handle of the instance that contains the image > LPCTSTR lpszName, // name or identifier of image > UINT uType, // type of image > int cxDesired, // desired width > int cyDesired, // desired height > UINT fuLoad // load flags > ); > |