The ImageList_SetImageCount function resizes an existing image list.
BOOL ImageList_SetImageCount(HIMAGELIST himl, UINT uNewCount);
Header file: | Commctrl.h |
Component: | Imgctl |
Platforms: | H/PC |
Windows CE versions: | 2.0 and later |
Returns nonzero if successful and zero otherwise.
If you expand an image list using the ImageList_SetImageCount function, you must add new images by using the ImageList_Replace function. If you do not add valid images at the new indexes, draw operations that use the new indexes will be unpredictable.
If you decrease the size of an image list by using this function, the truncated images are freed.