IDR_T31 GIF DISCARDABLE "C:\\Documents and Settings\\Administrator\\桌面\\1.gif"
msdn 的描述如下: Windows Mobile Version 5.0 SDK
SHLoadImageResource Send Feedback on this topic to the authors Requirements 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.
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".
Syntax HBITMAP SHLoadImageResource ( HINSTANCE hinst, UINT uIdImageFile ); Parameters hinst [in] Handle to the module whose executable file contains the image file. uIdImageFile [in] UINT identifying the image file. Return Values A handle to a bitmap if successful, NULL otherwise.
Remarks 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.
Requirements 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.