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.Informs the SOleComponentUIManager service of a UI event.

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.[in] Role of the affected in-place VSPackage object. Para obter dwCompRole valores válidos, consulte OLEROLE .For valid dwCompRole values, see OLEROLE.

rclsidComp
Guid

no Identificador de classe (CLSID) do objeto VSPackage in-loco.[in] Class identifier (CLSID) of the in-place VSPackage object.

pguidUIEventGroup
Guid

no Identifica exclusivamente o grupo de eventos de IU do objeto VSPackage in-loco.[in] Uniquely identifies the UI events group of the in-place VSPackage object.

nUIEventId
UInt32

no Identifica o evento usando uma combinação do grupo de eventos e a ID do evento.[in] Identifies the event using a combination of the events group and event ID.

dwUIEventStatus
UInt32

no Representa o status do evento.[in] Represents the status of the event. Para obter dwUIEventStatus valores válidos, consulte OLEUIEVENTSTATUS .For valid dwUIEventStatus values, see OLEUIEVENTSTATUS.

dwEventFreq
UInt32

no Indica a frequência em que o evento ocorre.[in] Indicates how often the event occurs. Para obter dwEventFreq valores válidos, consulte OLEUIEVENTFREQ .For valid dwEventFreq values, see OLEUIEVENTFREQ.

prcEventRegion
RECT[]

no Coordenadas de tela da região que podem ser afetadas pelo evento.[in] Screen coordinates of the region that might be affected by the event. O ambiente usa essas informações para evitar a região.The environment uses this information to avoid the region.

pvarEventArg
Object

no Contém informações específicas do evento, se aplicável.[in] Contains event-specific information if applicable. Normalmente, pvarEventArg será null .Typically, pvarEventArg will be null.

Comentários

Assinatura COMCOM Signature

De oleipc. idl:From 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.The functionality provided by OnUIEvent is also available with the SVsStatusbar service. OnUIEvent pode ser usado para controlar vários campos na barra de status do ambiente.OnUIEvent can be used to control various fields in the environment's status bar. 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.It is intended to insulate an in-place VSPackage object from interacting directly with any environment-specific UI peculiarities.

Uma chamada para OnUIEvent comunica o identificador de um evento, seu status, sua frequência e a região afetada.A call to OnUIEvent communicates an event's identifier, its status, its frequency, and the region affected. Os eventos a seguir têm suporte no momento pelo OnUIEvent .The following events are currently supported by OnUIEvent.

EventosEvents
uieventidSetTextLinePosuieventidSetTextLinePos uieventidSetGraphicYPosuieventidSetGraphicYPos
uieventidSetTextColPosuieventidSetTextColPos uieventidSetGraphicXSizeuieventidSetGraphicXSize
uieventidSetTextSelModeuieventidSetTextSelMode uieventidSetGraphicYSizeuieventidSetGraphicYSize
uieventidSetTextCharPosuieventidSetTextCharPos uieventidSetGraphicXPosuieventidSetGraphicXPos
uieventidSetTextInsModeuieventidSetTextInsMode uieventidAnimateIconuieventidAnimateIcon

Aplica-se a