IOleComponentUIManager.OnUIEvent(UInt32, Guid, Guid, UInt32, UInt32, UInt32, RECT[], Object) Método

Definição

Informa o SOleComponentUIManager serviço de um evento de interface do usuário.

public:
 void OnUIEvent(System::UInt32 dwCompRole, Guid % rclsidComp, Guid % pguidUIEventGroup, System::UInt32 nUIEventId, System::UInt32 dwUIEventStatus, System::UInt32 dwEventFreq, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prcEventRegion, System::Object ^ % pvarEventArg);
public void OnUIEvent (uint dwCompRole, ref Guid rclsidComp, ref Guid pguidUIEventGroup, uint nUIEventId, uint dwUIEventStatus, uint dwEventFreq, Microsoft.VisualStudio.OLE.Interop.RECT[] prcEventRegion, ref object pvarEventArg);
abstract member OnUIEvent : uint32 * Guid * Guid * uint32 * uint32 * uint32 * Microsoft.VisualStudio.OLE.Interop.RECT[] * obj -> unit
Public Sub OnUIEvent (dwCompRole As UInteger, ByRef rclsidComp As Guid, ByRef pguidUIEventGroup As Guid, nUIEventId As UInteger, dwUIEventStatus As UInteger, dwEventFreq As UInteger, prcEventRegion As RECT(), ByRef pvarEventArg As Object)

Parâmetros

dwCompRole
UInt32

no Função do objeto VSPackage in-loco afetado. Para obter dwCompRole valores válidos, consulte OLEROLE .

rclsidComp
Guid

no Identificador de classe (CLSID) do objeto VSPackage in-loco.

pguidUIEventGroup
Guid

no Identifica exclusivamente o grupo de eventos de IU do objeto VSPackage in-loco.

nUIEventId
UInt32

no Identifica o evento usando uma combinação do grupo de eventos e a ID do evento.

dwUIEventStatus
UInt32

no Representa o status do evento. Para obter dwUIEventStatus valores válidos, consulte OLEUIEVENTSTATUS .

dwEventFreq
UInt32

no Indica a frequência em que o evento ocorre. Para obter dwEventFreq valores válidos, consulte OLEUIEVENTFREQ .

prcEventRegion
RECT[]

no Coordenadas de tela da região que podem ser afetadas pelo evento. O ambiente usa essas informações para evitar a região.

pvarEventArg
Object

no Contém informações específicas do evento, se aplicável. Normalmente, pvarEventArg será null .

Comentários

Assinatura COM

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

A funcionalidade fornecida pelo OnUIEvent também está disponível com o SVsStatusbar serviço. OnUIEvent pode ser usado para controlar vários campos na barra de status do ambiente. Ele se destina a isolar um objeto VSPackage in-loco da interação direta com quaisquer peculiaridades de interface do usuário específicas do ambiente.

Uma chamada para OnUIEvent comunica o identificador de um evento, seu status, sua frequência e a região afetada. Os eventos a seguir têm suporte no momento pelo OnUIEvent .

Eventos
uieventidSetTextLinePos uieventidSetGraphicYPos
uieventidSetTextColPos uieventidSetGraphicXSize
uieventidSetTextSelMode uieventidSetGraphicYSize
uieventidSetTextCharPos uieventidSetGraphicXPos
uieventidSetTextInsMode uieventidAnimateIcon

Aplica-se a