ImageList_SetIconSize function

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

Syntax


BOOL ImageList_SetIconSize(
   HIMAGELIST himl,
   int        cx,
   int        cy
);

Parameters

himl

Type: HIMAGELIST

A handle to the image list.

cx

Type: int

The width, in pixels, of the images in the image list. All images in an image list have the same dimensions.

cy

Type: int

The height, in pixels, of the images in the image list. All images in an image list have the same dimensions.

Return value

Type: BOOL

Returns nonzero if successful, or zero otherwise.

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: