ImageList_SetImageCountImageList_SetImageCount*
*Contents  *Index  *Topic Contents
*Previous Topic: ImageList_SetIconSize
*Next Topic: ImageList_SetOverlayImage

ImageList_SetImageCount


BOOL ImageList_SetImageCount(
    HIMAGELIST himl,
    UINT       uNewCount);

Resizes an existing image list.

himl
Handle to the image list that will be resized.
uNewCount
Value specifying the new size of the image list.

If an application expands an image list with this function, it must add new images by using the ImageList_Replace function. If your application does 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.

Version 4.70


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