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
pic
Type: Microsoft.VisualStudio.OLE.Interop.IOleComponentIOleComponent if it is the view itself that is being activated, otherwise nulla null reference (Nothing in Visual Basic).
fSameComponent
Type: Int32true if pic is the same component as the callee of this method, otherwise false.
pcrinfo
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECRINFO[]An array of OLECRINFO structures, which represent registry information for pic.
fHostIsActivating
Type: Int32true if it the host that is being activated, otherwise false.
pchostinfo
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECHOSTINFO[]An array of OLECHOSTINFO structures, which represent host information.
dwReserved
Type: UInt32Reserved for future use.
Implements
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.