ImageList_SetImageCount function (commctrl.h)
Resizes an existing image list.
Syntax
BOOL ImageList_SetImageCount(
[in] HIMAGELIST himl,
[in] UINT uNewCount
);
Parameters
[in] himl
Type: HIMAGELIST
A handle to the image list that will be resized.
[in] uNewCount
Type: UINT
A value specifying the new size of the image list.
Return value
Type: BOOL
Returns nonzero if successful, or zero otherwise.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |
Library | Comctl32.lib |
DLL | Comctl32.dll |