Sdílet prostřednictvím


IOleComponentUIManager.OnUIEvent – metoda (UInt32, Guid, Guid, UInt32, UInt32, UInt32, RECT , Object)

 

Informuje o tom SOleComponentUIManager události uživatelského rozhraní služby.

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

Syntaxe

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
    [v] Role ovlivněný objekt v místě VSPackage.Pro platné dwCompRole hodnoty, viz OLEROLE.
  • rclsidComp
    [v] Identifikátor (třídy CLSID) objekt v místě VSPackage třídy.
  • pguidUIEventGroup
    [v] Jednoznačně identifikuje skupinu události uživatelského rozhraní objektu VSPackage v místě.
  • nUIEventId
    [v] Identifikuje událost pomocí kombinace skupiny události a ID události.
  • dwUIEventStatus
    [v] Představuje stav události.Pro platné dwUIEventStatus hodnoty, viz OLEUIEVENTSTATUS.
  • dwEventFreq
    [v] Označuje, jak často dojde k události.Pro platné dwEventFreq hodnoty, viz OLEUIEVENTFREQ.
  • prcEventRegion
    [v] Souřadnice oblasti, kterou může být ovlivněna události na obrazovce.Prostředí používá tyto informace k zamezení regionu.
  • pvarEventArg
    [v] Obsahuje informace specifické potřeby.Typically, pvarEventArg will be null.

Poznámky

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

Funkce poskytované OnUIEvent je také k dispozici SVsStatusbar služby.OnUIEventslouží k řízení různých polí v prostředí na stavovém řádku.Je určena dvouúrovňovou VSPackage objekt v místě přímou interakcí s jakékoli zvláštnostech specifické prostředí uživatelského rozhraní.

Volání OnUIEvent komunikuje identifikátor události, jeho stav, jejich četnost a oblasti postižené.Jsou aktuálně podporovány následující události OnUIEvent.

Události

 

uieventidSetTextLinePos

uieventidSetGraphicYPos

uieventidSetTextColPos

uieventidSetGraphicXSize

uieventidSetTextSelMode

uieventidSetGraphicYSize

uieventidSetTextCharPos

uieventidSetGraphicXPos

uieventidSetTextInsMode

uieventidAnimateIcon

Viz také

IOleComponentUIManager – rozhraní
Microsoft.VisualStudio.Shell.Interop – obor názvů

Zpátky na začátek