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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Dichiarazione
Public Overridable Sub OnActivationChange ( _
    pic As IOleComponent, _
    fSameComponent As Integer, _
    pcrinfo As OLECRINFO(), _
    fHostIsActivating As Integer, _
    pchostinfo As OLECHOSTINFO(), _
    dwReserved As UInteger _
)
'Utilizzo
Dim instance As SimpleEditorView
Dim pic As IOleComponent
Dim fSameComponent As Integer
Dim pcrinfo As OLECRINFO()
Dim fHostIsActivating As Integer
Dim pchostinfo As OLECHOSTINFO()
Dim dwReserved As UInteger

instance.OnActivationChange(pic, fSameComponent, _
    pcrinfo, fHostIsActivating, pchostinfo, _
    dwReserved)
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: System.Int32
    true if pic is the same component as the callee of this method, otherwise false.
  • fHostIsActivating
    Type: System.Int32
    true if it the host that is being activated, otherwise false.

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(uintuStateID, intfEnter) 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

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace