IVsDropdownBarClient::GetComboAttributes Method (Int32, UInt32, UInt32, IntPtr)

 

Returns information about a drop-down bar/Window combination.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int GetComboAttributes(
	int iCombo,
	[OutAttribute] unsigned int% pcEntries,
	[OutAttribute] unsigned int% puEntryType,
	[OutAttribute] IntPtr% phImageList
)

Parameters

iCombo
Type: System::Int32

[in] The drop-down bar/Window combination.

pcEntries
Type: System::UInt32

[in] Count of entries in the combination.

puEntryType
Type: System::UInt32

[out] Specifies drawing protocol for a combination. Values are taken from the DROPDOWNENTRYTYPE enumeration.

phImageList
Type: System::IntPtr

[out] Handle to an HIMAGELIST.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsDropdownBarClient::GetComboAttributes(
   [in] long iCombo,
   [out] ULONG *pcEntries,
   [out] ULONG *puEntryType
);

Any of the out parameters, phImageList, puEntryType, and pcEntries, can be null if the associated information is not needed.

System_CAPS_noteNote

 phImageList from GetComboAttributes cannot be marshaled across machines.

Return to top
Show: