Udostępnij za pośrednictwem


Metoda IOleComponentUIManager.OnUIEvent — (UInt32, Guid, Guid, UInt32, UInt32, UInt32, RECT , Object)

 

Opublikowano: sierpień 2016

Informuje o SOleComponentUIManager usługi zdarzenia interfejsu użytkownika.

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

Składnia

void OnUIEvent(
    uint dwCompRole,
    [InAttribute] ref Guid rclsidComp,
    [InAttribute] ref Guid pguidUIEventGroup,
    uint nUIEventId,
    uint dwUIEventStatus,
    uint dwEventFreq,
    RECT[] prcEventRegion,
    [InAttribute] ref object pvarEventArg
)
void OnUIEvent(
    unsigned int dwCompRole,
    [InAttribute] Guid% rclsidComp,
    [InAttribute] Guid% pguidUIEventGroup,
    unsigned int nUIEventId,
    unsigned int dwUIEventStatus,
    unsigned int dwEventFreq,
    array<RECT>^ prcEventRegion,
    [InAttribute] Object^% pvarEventArg
)
abstract OnUIEvent : 
        dwCompRole:uint32 *
        rclsidComp:Guid byref *
        pguidUIEventGroup:Guid byref *
        nUIEventId:uint32 *
        dwUIEventStatus:uint32 *
        dwEventFreq:uint32 *
        prcEventRegion:RECT[] *
        pvarEventArg:Object byref -> unit
Sub OnUIEvent (
    dwCompRole As UInteger,
    <InAttribute> ByRef rclsidComp As Guid,
    <InAttribute> ByRef pguidUIEventGroup As Guid,
    nUIEventId As UInteger,
    dwUIEventStatus As UInteger,
    dwEventFreq As UInteger,
    prcEventRegion As RECT(),
    <InAttribute> ByRef pvarEventArg As Object
)

Parametry

  • dwCompRole
    Type: System.UInt32

    [in] Roli zainfekowanego obiektu VSPackage w miejscu. Aby uzyskać prawidłową dwCompRole wartości, zobacz OLEROLE.

  • rclsidComp
    Type: System.Guid

    [in] Klasy (CLSID) identyfikator obiektu VSPackage w miejscu.

  • pguidUIEventGroup
    Type: System.Guid

    [in] Jednoznacznie identyfikuje grupę zdarzenia interfejsu użytkownika pakietu VSPackage obiektu w miejscu.

  • nUIEventId
    Type: System.UInt32

    [in] Identyfikuje zdarzenie przy użyciu kombinacji grupy zdarzeń i identyfikatora zdarzenia.

  • dwUIEventStatus
    Type: System.UInt32

    [in] Reprezentuje stan zdarzenia. Aby uzyskać prawidłową dwUIEventStatus wartości, zobacz OLEUIEVENTSTATUS.

  • dwEventFreq
    Type: System.UInt32

    [in] Wskazuje, jak często występuje zdarzenie. Aby uzyskać prawidłową dwEventFreq wartości, zobacz OLEUIEVENTFREQ.

  • prcEventRegion
    Type: Microsoft.VisualStudio.OLE.Interop.RECT[]

    [in] Współrzędne ekranu obszaru, który może mieć wpływ zdarzenie. Środowisko używa tych informacji w celu uniknięcia regionu.

  • pvarEventArg
    Type: System.Object

    [in] Zawiera informacje dotyczące zdarzeń, jeśli to konieczne. Zazwyczaj pvarEventArg będzie null.

Uwagi

Podpis COM

Z oleipc.idl:

void IOleComponentUIManager::OnUIEvent(
   [in] DWORD dwCompRole,
   [in] REFCLSID rclsidComp,
   [in] const GUID *pguidUIEventGroup,
   [in] DWORD nUIEventId,
   [in] DWORD dwUIEventStatus,
   [in] DWORD dwEventFreq,
   [in] RECT *prcEventRegion,
   [in] VARIANT *pvarEventArg
);

Funkcje zapewniane przez OnUIEvent jest również dostępna z SVsStatusbar usługi.OnUIEvent może służyć do kontrolowania różne pola na pasku stanu środowiska. Ma ona ochronić obiekt VSPackage w miejscu z poprzez bezpośrednią interakcję z dowolnego cechy interfejsu użytkownika określonego środowiska.

Wywołanie OnUIEvent komunikuje się identyfikator zdarzenia, jego stan, częstotliwości i regionu, których to dotyczy. Następujące zdarzenia są obecnie obsługiwane przez OnUIEvent.

Zdarzenia

 

uieventidSetTextLinePos

uieventidSetGraphicYPos

uieventidSetTextColPos

uieventidSetGraphicXSize

uieventidSetTextSelMode

uieventidSetGraphicYSize

uieventidSetTextCharPos

uieventidSetGraphicXPos

uieventidSetTextInsMode

uieventidAnimateIcon

Zobacz też

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

Powrót do początku