NAME

ImageList_Read  (COMCTL32.@)

SYNOPSIS

 HIMAGELIST ImageList_Read
 (
  LPSTREAM pstm
 )

DESCRIPTION

Reads an image list from a stream.

PARAMS

pstm [In] pointer to a stream.

RETURNS

Success: handle to image list

Failure: NULL.

The format is like this: ILHEAD ilheadstruct;.

for the color image part: BITMAPFILEHEADER bmfh; BITMAPINFOHEADER bmih; only if it has a palette: RGBQUAD rgbs[nr_of_paletted_colors];.

BYTE colorbits[imagesize];.

the following only if the ILC_MASK bit is set in ILHEAD.ilFlags: BITMAPFILEHEADER bmfh_mask; BITMAPINFOHEADER bmih_mask; only if it has a palette (it usually does not): RGBQUAD rgbs[nr_of_paletted_colors];.

BYTE maskbits[imagesize];.

CAVEAT: Those images are within a NxM bitmap, not the 1xN we expect. _read_bitmap needs to convert them.

IMPLEMENTATION

Defined in "commctrl.h".

Implemented in "dlls/comctl32/imagelist.c". source.winehq.org/source/dlls/comctl32/imagelist.c

Debug channel "imagelist".


Copyright © 2005 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Aug 2005.