示例#1
0
 public void GetWindowContext(out Interop.IOleInPlaceFrame ppFrame, out Interop.IOleInPlaceUIWindow ppDoc, Interop.COMRECT lprcPosRect, Interop.COMRECT lprcClipRect, Interop.tagOIFI lpFrameInfo)
 {
     // TODO:  Add DocHostUIHandler.GetWindowContext implementation
     ppFrame = null;
     ppDoc   = null;
 }
示例#2
0
        int Interop.IOleInPlaceSite.GetWindowContext(out Interop.IOleInPlaceFrame ppFrame, out Interop.IOleInPlaceUIWindow ppDoc, Interop.RECT lprcPosRect, Interop.RECT lprcClipRect, Interop.tagOIFI lpFrameInfo)
        {
            Debug.WriteLine("GetWindowContext2::Enter");
            ppFrame = this;
            ppDoc   = null;

            Win32.GetClientRect(EditorHandle, lprcPosRect);
            Win32.GetClientRect(EditorHandle, lprcClipRect);

            lpFrameInfo.cb            = Marshal.SizeOf(typeof(Interop.tagOIFI));
            lpFrameInfo.fMDIApp       = 0;
            lpFrameInfo.hwndFrame     = EditorHandle;
            lpFrameInfo.hAccel        = Interop.NullIntPtr;
            lpFrameInfo.cAccelEntries = 0;
            Debug.WriteLine("GetWindowContext2::Leave");

            return(Interop.S_OK);
        }
示例#3
0
        public void GetWindowContext(out Interop.IOleInPlaceFrame ppFrame, out Interop.IOleInPlaceUIWindow ppDoc, Interop.COMRECT lprcPosRect, Interop.COMRECT lprcClipRect, Interop.tagOIFI lpFrameInfo)
        {
            ppFrame = (Interop.IOleInPlaceFrame) this;
            ppDoc   = null;

            Interop.GetClientRect(hostControl.Handle, lprcPosRect);
            Interop.GetClientRect(hostControl.Handle, lprcClipRect);

            lpFrameInfo.cb            = Marshal.SizeOf(typeof(Interop.tagOIFI));
            lpFrameInfo.fMDIApp       = 0;
            lpFrameInfo.hwndFrame     = hostControl.Handle;
            lpFrameInfo.hAccel        = Interop.NullIntPtr;
            lpFrameInfo.cAccelEntries = 0;
        }
示例#4
0
        int Interop.IOleInPlaceSiteEx.GetWindowContext(out Interop.IOleInPlaceFrame ppFrame, out Interop.IOleInPlaceUIWindow ppDoc, Interop.RECT lprcPosRect, Interop.RECT lprcClipRect, Interop.tagOIFI lpFrameInfo)
        {
            //Debug.WriteLine("GetWindowContext::Enter");
            ppDoc   = null; //XX set to null because same as Frame window
            ppFrame = this;
            if (lprcPosRect != null)
            {
                Win32.GetClientRect(EditorHandle, lprcPosRect);
            }

            if (lprcClipRect != null)
            {
                Win32.GetClientRect(EditorHandle, lprcClipRect);
            }
            //lpFrameInfo.cb = Marshal.SizeOf(typeof(tagOIFI));
            //This value is set by the caller
            lpFrameInfo.fMDIApp       = 0;
            lpFrameInfo.hwndFrame     = EditorHandle;
            lpFrameInfo.hAccel        = IntPtr.Zero;
            lpFrameInfo.cAccelEntries = 0;
            //Debug.WriteLine("GetWindowContext::Leave");
            return(Interop.S_OK);
        }