ImageList_SetImageCount (Windows CE 5.0)

Send Feedback

This function resizes an existing image list.

BOOL ImageList_SetImageCount(HIMAGELISThiml,UINTuNewCount );

Parameters

  • himl
    [in] Handle to the image list that is resized.
  • uNewCount
    [in] Value specifying the new size of the image list.

Return Values

Nonzero indicates success. Zero indicates failure.

Remarks

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.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.
Link Library: Commctrl.lib, Imgctl.lib.

See Also

ImageList_Replace

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.