Udostępnij za pośrednictwem


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

 

Data opublikowania: sierpień 2016

Tworzy przycisk Obraz/tekstu mieszanego przy użyciu określonego symbolu jako obrazu.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Składnia

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

    [in] Dojście do okna, które jest do utworzenia przycisku. Obecnie Visual Studio ignoruje tę wartość.

  • chGlyph
    Type: System.UInt16

    [in] Znak reprezentującą symbol do użycia.

  • xShift
    Type: System.Int32

    [in] Jak daleko do prawej, w jednostkach logicznych, aby przesunąć symbol.

  • yShift
    Type: System.Int32

    [in] Jak daleko w dół, w jednostkach logicznych, aby przesunąć symbol.

  • bwiPos
    Type: System.UInt32

    [in] Wartość z zakresu od __BWI_IMAGE_POS Wyliczenie Określanie położenie symbol w odniesieniu do dowolnego tekstu przycisku.

Wartość zwracana

Type: System.Int32

Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.

Uwagi

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

Symbol jest znak z zestawu, na przykład reprezentującą znak graficzny takich jak przycisk Zamknij w ramce okna znaków.

Zobacz też

Interfejs IVsUIShell2
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku