Example #1
0
        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.RaiseOnShowContextMenu(e);
            }
            catch {}
            finally {
                if (e.Cancel)
                {
                    ret = Interop.S_OK;
                }
            }
            return(ret);
        }