SimpleEditorView.OnActivationChange Method
Called when a new object is being activated.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.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
'Declaração
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
)
Parameters
- pic
Type: Microsoft.VisualStudio.OLE.Interop.IOleComponent
IOleComponent if it is the view itself that is being activated, otherwise nulla null reference (Nothing in Visual Basic).
- fSameComponent
Type: System.Int32
true 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: System.Int32
true 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: System.UInt32
Reserved 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.