public int OnPosRectChange([In, MarshalAs(UnmanagedType.Struct)] ref tagRECT lprcPosRect) { lprcPosRect = rectForm; return(HRESULT.S_OK); }
public int GetWindowContext([MarshalAs(UnmanagedType.Interface), Out] out IOleInPlaceFrame ppFrame, [MarshalAs(UnmanagedType.Interface), Out] out IOleInPlaceUIWindow ppDoc, [In, MarshalAs(UnmanagedType.Struct), Out] ref tagRECT lprcPosRect, [In, MarshalAs(UnmanagedType.Struct), Out] ref tagRECT lprcClipRect, [In, MarshalAs(UnmanagedType.Struct), Out] ref tagOIFI lpFrameInfo) { ppFrame = null; ppDoc = null; lprcPosRect = rectForm; lprcClipRect = rectForm; return(HRESULT.S_OK); }
public ClientSite(IntPtr handle, int l, int t, int r, int b) { groupBoxHandle = handle; rectForm = new tagRECT(l, t, r, b); }