/// <summary> /// Scrolls control scrollbars to specified positions. /// </summary> /// <param name="x">Horizontal scrollbar position.</param> /// <param name="y">Vertical scrollbar position.</param> public void SetScrollPos(int x, int y) { Native.POINT pt = new Native.POINT(x, y); Native.SendMessage(Handle, Native.EM_SETSCROLLPOS, 0, ref pt); }
uint Native.IDocHostUIHandler.ShowContextMenu(int dwID, Native.POINT pt, object pcmdtReserved, object pdispReserved) { return(IsWebBrowserContextMenuEnabled ? S_FALSE : S_OK); }
/// <summary> /// Scrolls control scrollbars to specified positions. /// </summary> /// <param name="x">Horizontal scrollbar position.</param> /// <param name="y">Vertical scrollbar position.</param> public void SetScrollPos(int x, int y) { Native.POINT pt = new Native.POINT(x, y); Native.SendMessage(Handle, Native.EM_SETSCROLLPOS, 0, ref pt); }