public int GetContextMenu(short seltype, IntPtr lpoleobj, System.Design.NativeMethods.CHARRANGE lpchrg, out IntPtr hmenu) { TextBox box = new TextBox { Visible = true }; ContextMenu contextMenu = box.ContextMenu; if ((contextMenu == null) || !this.owner.ShortcutsEnabled) { hmenu = IntPtr.Zero; } else { hmenu = contextMenu.Handle; } return(0); }
public int GetClipboardData(System.Design.NativeMethods.CHARRANGE lpchrg, int reco, IntPtr lplpdataobj) { return(-2147467263); }