Condividi tramite


SimpleEditorView.OnActivationChange Method

Called when a new object is being activated.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Sub OnActivationChange ( _
    pic As IOleComponent, _
    fSameComponent As Integer, _
    pcrinfo As OLECRINFO(), _
    fHostIsActivating As Integer, _
    pchostinfo As OLECHOSTINFO(), _
    dwReserved As UInteger _
)
public virtual void OnActivationChange(
    IOleComponent pic,
    int fSameComponent,
    OLECRINFO[] pcrinfo,
    int fHostIsActivating,
    OLECHOSTINFO[] pchostinfo,
    uint dwReserved
)
public:
virtual void OnActivationChange(
    IOleComponent^ pic, 
    int fSameComponent, 
    array<OLECRINFO>^ pcrinfo, 
    int fHostIsActivating, 
    array<OLECHOSTINFO>^ pchostinfo, 
    unsigned int dwReserved
)
abstract OnActivationChange : 
        pic:IOleComponent * 
        fSameComponent:int * 
        pcrinfo:OLECRINFO[] * 
        fHostIsActivating:int * 
        pchostinfo:OLECHOSTINFO[] * 
        dwReserved:uint32 -> unit  
override OnActivationChange : 
        pic:IOleComponent * 
        fSameComponent:int * 
        pcrinfo:OLECRINFO[] * 
        fHostIsActivating:int * 
        pchostinfo:OLECHOSTINFO[] * 
        dwReserved:uint32 -> unit
public function OnActivationChange(
    pic : IOleComponent, 
    fSameComponent : int, 
    pcrinfo : OLECRINFO[], 
    fHostIsActivating : int, 
    pchostinfo : OLECHOSTINFO[], 
    dwReserved : uint
)

Parameters

  • fSameComponent
    Type: Int32

    true if pic is the same component as the callee of this method, otherwise false.

  • fHostIsActivating
    Type: Int32

    true if it the host that is being activated, otherwise false.

  • dwReserved
    Type: UInt32

    Reserved for future use.

Implements

IOleComponent.OnActivationChange(IOleComponent, Int32, array<OLECRINFO[], Int32, array<OLECHOSTINFO[], UInt32)

Remarks

If pic is being activated and pcrinfo[0].grfcrf has the olecrfExclusiveBorderSpace bit set, the border space tools (toolbars, status bars, etc.) must be hidden. If it is the host that is being activated and pchostinfo[0].grfchostf has the olechostfExclusiveBorderSpace bit set, the border space tools must be hidden as well. In either of these cases, the border space tools should be unhidden the next time the view is activated.

If pic is being activated and pcrinfo[0].grfcrf has the olecrfExclusiveActivation bit is set, then pic is being activated in ExclusiveActive mode. If the top frame window that is hosting pic is different from the view's own top frame window, the view should disable its windows and do what it would do when receiving OnEnterState notification. Otherwise, if the view is top-level, it should refuse to have its window activated by appropriately processing WM_MOUSEACTIVATE. The component should remain in one of these states until the ExclusiveActive mode ends, indicated by a future call to OnActivationChange with the olecrfExclusiveActivation bit not set or with a nulla null reference (Nothing in Visual Basic)pcrinfo.

.NET Framework Security

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace