Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Initializes an image list.
Syntax
HRESULT Initialize(
[in] int cx,
[in] int cy,
[in] UINT flags,
[in] int cInitial,
[in] int cGrow
);
Parameters
[in] cx
Type: int
Width, in pixels, of each image.
[in] cy
Type: int
Height, in pixels, of each image.
[in] flags
Type: UINT
A combination of Image List Creation Flags.
[in] cInitial
Type: int
Number of images that the image list initially contains.
[in] cGrow
Type: int
Number of new images that the image list can contain.
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) |