Esempio n. 1
0
 public void ActivateMSHTML()
 {
     try
     {
         Interop.COMRECT rect = new Interop.COMRECT();
         Interop.GetClientRect(this.hostControl.Handle, rect);
         this.tridentOleObject.DoVerb(-4, Interop.NullIntPtr, this, 0, this.hostControl.Handle, rect);
     }
     catch (Exception)
     {
     }
 }
Esempio n. 2
0
 public int ActivateMe(Interop.IOleDocumentView pViewToActivate)
 {
     if (pViewToActivate == null)
     {
         return -2147024809;
     }
     Interop.COMRECT rect = new Interop.COMRECT();
     Interop.GetClientRect(this.hostControl.Handle, rect);
     this.tridentView = pViewToActivate;
     this.tridentView.SetInPlaceSite(this);
     this.tridentView.UIActivate(1);
     this.tridentView.SetRect(rect);
     this.tridentView.Show(1);
     return 0;
 }
Esempio n. 3
0
 private void OnParentResize(object src, EventArgs e)
 {
     if (this.tridentView != null)
     {
         Interop.COMRECT rect = new Interop.COMRECT();
         Interop.GetClientRect(this.hostControl.Handle, rect);
         this.tridentView.SetRect(rect);
     }
 }