Exemplo n.º 1
0
 public static int GetScrollPos(this RichTextBox rich)
 {
     return(WMHelper.GetScrollPos(rich.Handle, WMHelper.SB_VERT));
 }
Exemplo n.º 2
0
 public static int SetScrollPos(this RichTextBox rich, int pos)
 {
     return(WMHelper.SetScrollPos(rich.Handle, WMHelper.SB_VERT, pos, false));
 }
Exemplo n.º 3
0
 public static void SetRefreshable(this RichTextBox rich, bool allowOrNot)
 {
     WMHelper.SendMessage(rich.Handle,
                          WMHelper.WM_SETREDRAW,
                          allowOrNot ? 1 : 0, 0);
 }