Example #1
0
 /// <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);
 }
Example #2
0
 uint Native.IDocHostUIHandler.ShowContextMenu(int dwID, Native.POINT pt, object pcmdtReserved, object pdispReserved)
 {
     return(IsWebBrowserContextMenuEnabled ? S_FALSE : S_OK);
 }
Example #3
0
 /// <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);
 }