IImageList2::Resize method (commoncontrols.h)

Resizes the current image.

Syntax

HRESULT Resize(
  [in] int cxNewIconSize,
  [in] int cyNewIconSize
);

Parameters

[in] cxNewIconSize

Type: int

The x-axis count, in pixels, for the new size.

[in] cyNewIconSize

Type: int

The y-axis count, in pixels, for the new size.

Return value

Type: HRESULT

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

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header commoncontrols.h
DLL Comctl32.dll (version 6.0 or later)