SHLoadImageResource

Send Feedback

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.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.