Esempio n. 1
0
 /// <summary>
 /// </summary>
 internal void ParentResize()
 {
     if (interopDocumentView != null)
     {
         Interop.RECT r = EditorRect;
         interopDocumentView.SetRect(r);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// </summary>
        private void OnParentResize(object src, EventArgs e)
        {
            if (tridentView != null)
            {
                Interop.COMRECT r = new Interop.COMRECT();

                Interop.GetClientRect(hostControl.Handle, r);
                tridentView.SetRect(r);
            }
        }
Esempio n. 3
0
        public int ActivateMe(Interop.IOleDocumentView pViewToActivate)
        {
            if (pViewToActivate == null)
            {
                return(Interop.E_INVALIDARG);
            }

            Interop.RECT r = EditorRect;

            interopDocumentView = pViewToActivate;
            interopDocumentView.SetInPlaceSite(this);
            interopDocumentView.UIActivate(WithUI ? 1 : 0);
            interopDocumentView.SetRect(r);
            interopDocumentView.Show(1);

            return(Interop.S_OK);
        }
Esempio n. 4
0
        ///////////////////////////////////////////////////////////////////////////
        // Interop.IOleDocumentSite Implementation

        public int ActivateMe(Interop.IOleDocumentView pViewToActivate)
        {
            Debug.Assert(pViewToActivate != null,
                         "Expected the view to be non-null");
            if (pViewToActivate == null)
            {
                return(Interop.E_INVALIDARG);
            }

            Interop.COMRECT r = new Interop.COMRECT();

            Interop.GetClientRect(hostControl.Handle, r);

            tridentView = pViewToActivate;
            tridentView.SetInPlaceSite((Interop.IOleInPlaceSite) this);
            tridentView.UIActivate(1);
            tridentView.SetRect(r);
            tridentView.Show(1);

            return(Interop.S_OK);
        }