internal void OnShowContextMenu(BrowserContextMenuCancelEventArgs e) { if (ShowContextMenu != null) { ShowContextMenu(this, e); } }
public int ShowContextMenu(int dwID, Interop.POINT pt, object pcmdtReserved, object pdispReserved) { int ret = Interop.S_FALSE; Point location = hostControl.PointToClient(new Point(pt.x, pt.y)); BrowserContextMenuCancelEventArgs e = new BrowserContextMenuCancelEventArgs(location, false); try { hostControl.OnShowContextMenu(e); } catch {} finally { if (e.Cancel) { ret = Interop.S_OK; } } return(ret); }
internal void OnShowContextMenu(BrowserContextMenuCancelEventArgs e) { if (ShowContextMenu != null) ShowContextMenu(this, e); }