/// <summary>
 /// Notifies the component when a new object is being activated.
 /// </summary>
 /// <param name="dwReserved">Reserved for future use.</param>
 /// <param name="fHostIsActivating">TRUE (not zero) if the host is the object being activated, otherwise FALSE (zero).</param>
 /// <param name="fSameComponent">TRUE (not zero) if pic is the same component as the callee of this method, otherwise FALSE (zero).</param>
 /// <param name="pchostinfo">An OLECHOSTINFO that contains information about the host.</param>
 /// <param name="pcrinfo">An OLECRINFO that contains information about pic.</param>
 /// <param name="pic">The IOleComponent object to activate.</param>
 /// <remarks>
 /// If pic is non-NULL, then it is the component that is being activated.
 /// In this case, fSameComponent is true if pic is the same component as
 /// the callee of this method, and pcrinfo is the information about the pic.
 /// If pic is NULL and fHostIsActivating is true, then the host is the
 /// object being activated, and pchostinfo is its host info.
 /// If pic is NULL and fHostIsActivating is false, then there is no current
 /// active object.
 /// If pic is being activated and pcrinfo->grf has the olecrfExclusiveBorderSpace 
 /// bit set, the component should hide its border space tools (toolbars, 
 /// status bars, etc.), and it should also do this if the host is activating and 
 /// pchostinfo->grfchostf has the olechostfExclusiveBorderSpace bit set.
 /// In either of these cases, the component should unhide its border space
 /// tools the next time it is activated.
 /// If pic is being activated and pcrinfo->grf has the olecrfExclusiveActivation
 /// bit is set, then pic is being activated in 'ExclusiveActive' mode.  The
 /// component should retrieve the top frame window that is hosting pic
 /// (via pic->HwndGetWindow(olecWindowFrameToplevel, 0)).  
 /// If this window is different from the component's own top frame window, 
 /// the component should disable its windows and do the things it would do
 /// when receiving an OnEnterState(olecstateModal, true) notification. 
 /// Otherwise, if the component 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 ExclusiveActivation bit not set or with a NULL pcrinfo.
 /// </remarks>
 public void OnActivationChange(IOleComponent pic, int fSameComponent, OLECRINFO[] pcrinfo, int fHostIsActivating, OLECHOSTINFO[] pchostinfo, uint dwReserved)
 {
 }
Exemplo n.º 2
0
 public virtual void OnActivationChange(Microsoft.VisualStudio.OLE.Interop.IOleComponent pic, int fSameComponent, OLECRINFO[] pcrinfo, int fHostIsActivating, OLECHOSTINFO[] pchostinfo, uint dwReserved) {
 }