IImageList::GetIconSize Method

Gets the dimensions of images in an image list. All images in an image list have the same dimensions.

Syntax

HRESULT GetIconSize(      
    int *cx,     int *cy );

Parameters

cx
[out] A pointer to an int that receives the width, in pixels, of each image.
cy
[out] A pointer to an int that receives the height, in pixels, of each image.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

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

Tags :


Page view tracker