Skip to content

Latest commit

 

History

History
79 lines (62 loc) · 2.46 KB

nf-commctrl-imagelist_setimagecount.md

File metadata and controls

79 lines (62 loc) · 2.46 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:commctrl.ImageList_SetImageCount
ImageList_SetImageCount function (commctrl.h)
Resizes an existing image list. (ImageList_SetImageCount)
ImageList_SetImageCount
ImageList_SetImageCount function [Windows Controls]
_win32_ImageList_SetImageCount
_win32_ImageList_SetImageCount_cpp
commctrl/ImageList_SetImageCount
controls.ImageList_SetImageCount
controls._win32_ImageList_SetImageCount
controls\ImageList_SetImageCount.htm
Controls
VS|Controls|~\controls\imagelist\functions\imagelist_setimagecount.htm
12/05/2018
ImageList_SetImageCount, ImageList_SetImageCount function [Windows Controls], _win32_ImageList_SetImageCount, _win32_ImageList_SetImageCount_cpp, commctrl/ImageList_SetImageCount, controls.ImageList_SetImageCount, controls._win32_ImageList_SetImageCount
commctrl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Comctl32.lib
Comctl32.dll
Windows
19H1
ImageList_SetImageCount
commctrl/ImageList_SetImageCount
c++
APIRef
kbSyntax
DllExport
Comctl32.dll
ImageList_SetImageCount

ImageList_SetImageCount function

-description

Resizes an existing image list.

-parameters

-param himl [in]

Type: HIMAGELIST

A handle to the image list that will be resized.

-param uNewCount [in]

Type: UINT

A value specifying the new size of the image list.

-returns

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.