Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
 public Interop.HRESULT GetClipboardData(ref Interop.Richedit.CHARRANGE lpchrg, uint reco, IntPtr lplpdataobj)
 {
     Debug.WriteLineIf(RichTextDbg.TraceVerbose, "IRichTextBoxOleCallback::GetClipboardData");
     return(Interop.HRESULT.E_NOTIMPL);
 }