Example #1
0
 /// <summary>
 /// Notifies a container when an embedded object's window is about to become visible.
 /// The container uses this information to shade the object's client site when the object is displayed in a window.
 /// A shaded object, having received this notification, knows that it already has an open window and therefore can respond to being double-clicked by bringing this window quickly to the top, instead of launching its application in order to obtain a new one.
 /// </summary>
 public virtual void SendAdvise_ShowWindow()
 {
     ComDebug.ReportInfo("{0}.SendAdvise.ShowWindow -> Calling IOleClientSite.OnShowWindow(true)", GetType().Name);
     if (null != _clientSite)
     {
         _clientSite.OnShowWindow(true);
     }
 }
 public void OnShowWindow(int fShow)
 {
     Debug.Print("IOleClientSite.OnShowWindow");
     _baseIOleClientSite.OnShowWindow(fShow);
 }