Converts an image file in the resource file to a bitmap file. A resource image file should be coded in the resource file as follows (using GIF as an example):
IDG_MYIMAGE_GIF GIF DISCARDABLE "MyImage.gif".
HBITMAP SHLoadImageResource ( HINSTANCE hinst, UINT uIdImageFile );
- [in] Handle to the module whose executable file contains the image file.
- [in] UINT identifying the image file.
A handle to a bitmap if successful, NULL otherwise.
This function converts files of several types, including GIF (Graphics Interchange Format), PNG (Portable Network Graphics), JPG (Joint Photographic Experts Group), ICO (icon), and BMP (bitmap) file formats.
Pocket PC: Windows Mobile 2003 and later.
OS Versions: Windows CE .NET 4.0 and later.
Header: Declared in Aygshell.h.
Library: Use Aygshell.lib.
Send Feedback on this topic to the authors