Re: [Dev-C++] Loading a bitmap and getting its handle ???
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2005-01-10 13:09:01
|
A_B...@gm... wrote: > Hi, > I want to use the BitBlt and StrechBlt APIs for drawing images on a win= dow. > Now this APIs needs handles to the window and the bitmap. > I can get the handle of the window, but how do I load a bitmap into=20 > memory and get its handle ??? If you want to load a bitmap from a file (.bmp), then you have to look=20 for an image library or write your own loader, as the Win32 API doesn't=20 support loading bitmaps from files directly. It can load bitmaps from resources though. See LoadBitmap() for details. -- Greetings, Bal=E1zs |