IVsToolbox5::GetItemBitmap Method (IDataObject^, IntPtr)

 

Gets a copy of the bitmap for the specified item. The caller is responsible for freeing the bitmap using DeleteObject() or its equivalent.

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

int GetItemBitmap(
	IDataObject^ pDataObject,
	[OutAttribute] IntPtr% pBitmap
)

Parameters

pDataObject
Type: Microsoft.VisualStudio.OLE.Interop::IDataObject^

The item as an IDataObject.

pBitmap
Type: System::IntPtr

[out] A pointer to the bitmap.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return to top
Show: