ImageList_SetImageCount function

Resizes an existing image list.

Syntax


BOOL ImageList_SetImageCount(
  _In_ HIMAGELIST himl,
  _In_ UINT       uNewCount
);

Parameters

himl [in]

Type: HIMAGELIST

A handle to the image list that will be resized.

uNewCount [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

Library

Comctl32.lib

DLL

Comctl32.dll

 

 

Show: