ImageList_LoadBitmapImageList_LoadBitmap*
*



Contents  *



Index  *Topic Contents
*Previous Topic: ImageList_ExtractIcon
*Next Topic: ImageList_RemoveAll

ImageList_LoadBitmap


HIMAGELIST ImageList_LoadBitmap(
    HINSTANCE hi,
    LPCTSTR lpbmp,
    int cx,
    int cGrow,
    COLORREF crMask
   );	

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

hi
Handle to the instance that contains the bitmap resource. This parameter is NULL if you are loading an OEM bitmap.
lpbmp
Identifies the image to load.
If the hi parameter is non-NULL, lpszName 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 low-order word 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
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
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
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.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.