public Interop.HRESULT GetContextMenu(short seltype, IntPtr lpoleobj, ref Interop.Richedit.CHARRANGE lpchrg, out IntPtr hmenu) { TextBox tb = new TextBox { Visible = true }; ContextMenu cm = tb.ContextMenu; if (cm == null || _owner.ShortcutsEnabled == false) { hmenu = IntPtr.Zero; } else { hmenu = cm.Handle; } return(Interop.HRESULT.S_OK); }
public Interop.HRESULT GetClipboardData(ref Interop.Richedit.CHARRANGE lpchrg, uint reco, IntPtr lplpdataobj) { Debug.WriteLineIf(RichTextDbg.TraceVerbose, "IRichTextBoxOleCallback::GetClipboardData"); return(Interop.HRESULT.E_NOTIMPL); }