Share via


IVsUIShell6.CreateThemedImageList Method

Creates a themed image list. Themed image lists attempt to transform the images to target a given background. The caller is responsible for calling ImageList_Destroy to delete the imagelist. HANDLE represents an HIMAGELIST, but including commctrl.h can produce build issues for projects that would not otherwise support common controls.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

Syntax

'Declaration
Function CreateThemedImageList ( _
    hImageList As IntPtr, _
    crBackground As UInteger _
) As IntPtr
IntPtr CreateThemedImageList(
    IntPtr hImageList,
    uint crBackground
)
IntPtr CreateThemedImageList(
    [InAttribute] IntPtr hImageList, 
    [InAttribute] unsigned int crBackground
)
abstract CreateThemedImageList : 
        hImageList:IntPtr * 
        crBackground:uint32 -> IntPtr
function CreateThemedImageList(
    hImageList : IntPtr, 
    crBackground : uint
) : IntPtr

Parameters

  • hImageList
    Type: IntPtr

    The image list.

  • crBackground
    Type: UInt32

    The background color.

Return Value

Type: IntPtr
The HRESULT.

.NET Framework Security

See Also

Reference

IVsUIShell6 Interface

Microsoft.VisualStudio.Shell.Interop Namespace