The ImageList_LoadBitmap function creates an image list from the specified bitmap resource. ImageList_LoadBitmap is a macro that calls the ImageList_LoadImage function.
HIMAGELIST ImageList_LoadBitmap(
HINSTANCE hi, |
// handle of instance containing the bitmap |
LPCTSTR lpbmp, |
// identifies the bitmap to load |
int cx, |
// image width |
int cGrow, |
// number of new images the list can contain |
COLORREF crMask |
// color used to generate a mask |
); |
If the hi parameter is non-NULL, lpszName is a pointer to 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.
If the function succeeds, the return value is the image list.
If the function fails, the return value is NULL.