title: How to get scroll position for RichTextBox?
body: <p>I'm working in C#, Windows Forms application, and have a problem getting scroll position for RichTextBox with large amount of text. </p>
  
  <p>I'm using this code:</p>
  
  <pre><code>  public class POINT
      {
          public  int x;
          public int y;
  
          public POINT()
          {
          }
  
          public POINT(int x, int y)
          {
              this.x = x;
              this.y = y;
          }
      }
  </code></pre>
  
  <p><code>SendMessage(this.Handle, EM_GETSCROLLPOS, 0, res)</code></p>
  
  <p>But, when control contains large amount of text, resulting y offset is incorect because upper 16 bits of Y are always 0.</p>
  
  <p>Is there any way to get scroll position larger than 16 bits?</p>