Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Control Library
Image Lists
Interfaces
IImageList
 GetIconSize Method
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 What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker