ImageList_LoadBitmap macro (commctrl.h)

Calls the ImageList_LoadImage function to create an image list from the specified bitmap resource.

Syntax

void ImageList_LoadBitmap(
   hi,
   lpbmp,
   cx,
   cGrow,
   crMask
);

Parameters

hi

Type: HINSTANCE

A handle to the instance that contains the bitmap resource. This parameter is NULL if you are loading an OEM bitmap.

lpbmp

Type: LPCTSTR

The image to load. If the hi parameter is non-NULL, lpbmp is the address of a null-terminated string that contains the name of the image resource in the hi module. If hi is NULL, the LOWORD of this parameter must be the identifier of an OEM bitmap to load. To create this value, use the MAKEINTRESOURCE macro with one of the OEM bitmap identifiers defined in WINUSER.H. These identifiers have the OBM_ prefix.

cx

Type: int

The width of each image. The height of each image and the initial number of images are inferred by the dimensions of the specified bitmap.

cGrow

Type: int

The number of images by which the image list can grow when the system needs to make room for new images. This parameter represents the number of new images that the resized image list can contain.

crMask

Type: COLORREF

The color used to generate a mask. Each pixel of this color in the specified bitmap is changed to black, and the corresponding bit in the mask is set to 1. If this parameter is the CLR_NONE value, no mask is generated.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h