CreateGlyphImageButton Method
The document is archived and information here might be outdated

IVsUIShell2.CreateGlyphImageButton Method

Creates a mixed image/text button using the specified glyph as the image.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)

int CreateGlyphImageButton (
	[InAttribute] IntPtr hwnd,
	[InAttribute] ushort chGlyph,
	[InAttribute] int xShift,
	[InAttribute] int yShift,
	[InAttribute] uint bwiPos,
	out IVsImageButton ppImageButton
)
int CreateGlyphImageButton (
	/** @attribute InAttribute() */ IntPtr hwnd, 
	/** @attribute InAttribute() */ UInt16 chGlyph, 
	/** @attribute InAttribute() */ int xShift, 
	/** @attribute InAttribute() */ int yShift, 
	/** @attribute InAttribute() */ UInt32 bwiPos, 
	/** @attribute OutAttribute() */ /** @ref */ IVsImageButton ppImageButton
)
JScript does not support passing value-type arguments by reference.

Parameters

hwnd

[in] Handle to the window that is to own the created button. Currently, Visual Studio ignores this value.

chGlyph

[in] The character representing the glyph to use.

xShift

[in] How far to the right, in logical units, to shift the glyph.

yShift

[in] How far down, in logical units, to shift the glyph.

bwiPos
ppImageButton

[out] Returns an IVsImageButton object representing the new button.

Return Value

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

COM Signature

From vsshell80.idl:

HRESULT IVsUIShell2:: CreateGlyphImageButton(
   [in]  HWND             hwnd,
   [in]  WCHAR            chGlyph,
   [in]  int              xShift,
   [in]  int              yShift,
   [in]  BWI_IMAGE_POS    pos,
   [out] IVsImageButton** ppImageButton
);

The glyph is a character from a character set representing a visual symbol such as the close button in a window frame, for example.

Show:
© 2016 Microsoft