Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 2.84 KB

nf-commoncontrols-iimagelist-seticonsize.md

File metadata and controls

77 lines (61 loc) · 2.84 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:commoncontrols.IImageList.SetIconSize
IImageList::SetIconSize (commoncontrols.h)
Sets the dimensions of images in an image list and removes all images from the list. (IImageList.SetIconSize)
IImageList interface [Windows Controls]
SetIconSize method
IImageList.SetIconSize
IImageList::SetIconSize
SetIconSize
SetIconSize method [Windows Controls]
SetIconSize method [Windows Controls]
IImageList interface
comctl_IImageList_SetIconSize
comctl_IImageList_SetIconSize_cpp
commoncontrols/IImageList::SetIconSize
controls.IImageList_SetIconSize
controls.comctl_IImageList_SetIconSize
controls\IImageList_SetIconSize.htm
Controls
VS|Controls|~\controls\imagelist\ifaces\iimagelist\seticonsize.htm
12/05/2018
IImageList interface [Windows Controls],SetIconSize method, IImageList.SetIconSize, IImageList::SetIconSize, SetIconSize, SetIconSize method [Windows Controls], SetIconSize method [Windows Controls],IImageList interface, comctl_IImageList_SetIconSize, comctl_IImageList_SetIconSize_cpp, commoncontrols/IImageList::SetIconSize, controls.IImageList_SetIconSize, controls.comctl_IImageList_SetIconSize
commoncontrols.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
CommonControls.idl
Comctl32.dll (version 6.0 or later)
Windows
19H1
IImageList::SetIconSize
commoncontrols/IImageList::SetIconSize
c++
APIRef
kbSyntax
COM
Comctl32.dll
IImageList.SetIconSize

IImageList::SetIconSize

-description

Sets the dimensions of images in an image list and removes all images from the list.

-parameters

-param cx [in]

Type: int

A value of type int that contains the width, in pixels, of the images in the image list. All images in an image list have the same dimensions.

-param cy [in]

Type: int

A value of type int that contains the height, in pixels, of the images in the image list. All images in an image list have the same dimensions.

-returns

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

To use IImageList::SetIconSize, specify Comctl32.dll version 6 in the manifest. For more information on manifests, see Enabling Visual Styles.