Sdílet prostřednictvím


Metoda IVsUIShell2.CreateGlyphImageButton (IntPtr, UInt16, Int32, Int32, UInt32, IVsImageButton)

 

Publikováno: srpen 2016

Vytvoří tlačítka smíšená bitovou kopii nebo textu s použitím zadané glyf jako bitovou kopii.

Obor názvů:   Microsoft.VisualStudio.Shell.Interop
Sestavení:  Microsoft.VisualStudio.Shell.Interop.8.0 (v Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntaxe

int CreateGlyphImageButton(
    IntPtr hwnd,
    ushort chGlyph,
    int xShift,
    int yShift,
    uint bwiPos,
    out IVsImageButton ppImageButton
)
int CreateGlyphImageButton(
    IntPtr hwnd,
    unsigned short chGlyph,
    int xShift,
    int yShift,
    unsigned int bwiPos,
    [OutAttribute] IVsImageButton^% ppImageButton
)
abstract CreateGlyphImageButton : 
        hwnd:nativeint *
        chGlyph:uint16 *
        xShift:int *
        yShift:int *
        bwiPos:uint32 *
        ppImageButton:IVsImageButton byref -> int
Function CreateGlyphImageButton (
    hwnd As IntPtr,
    chGlyph As UShort,
    xShift As Integer,
    yShift As Integer,
    bwiPos As UInteger,
    <OutAttribute> ByRef ppImageButton As IVsImageButton
) As Integer

Parametry

  • hwnd
    Type: System.IntPtr

    [v] Zpracování v okně, který je vytvořený tlačítko Vlastní. V současné době Visual Studio ignoruje tuto hodnotu.

  • chGlyph
    Type: System.UInt16

    [v] Znak představující glyf, který chcete použít.

  • xShift
    Type: System.Int32

    [v] Jak daleko vpravo, v logických jednotkách posunutí glyf.

  • yShift
    Type: System.Int32

    [v] Jak daleko dolů v logických jednotkách, chcete-li posunout glyf.

  • bwiPos
    Type: System.UInt32

    [v] Hodnoty z __BWI_IMAGE_POS Výčet určující, jak má být umístěn glyf ve vztahu k jakýkoli text na tlačítku.

Návratová hodnota

Type: System.Int32

Pokud je metoda úspěšná, vrátí S_OK. Pokud selže, vrátí kód chyby.

Poznámky

Podpis modelu COM

Z 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
);

Glyf je znak z znakovou sadu, například představující visual symbol, jako je například tlačítko Zavřít v rámec okna.

Viz také

Rozhraní IVsUIShell2
Obory názvů Microsoft.VisualStudio.Shell.Interop

Zpět na začátek