/// <summary>
 /// Gets the scroll position of the text box.
 /// </summary>
 /// <returns>The point denoting the scroll position.</returns>
 protected Point GetScrollPos()
 {
     EnhTextBoxAPIFunctions.POINTAPI lpScrollPoint = new EnhTextBoxAPIFunctions.POINTAPI();
     EnhTextBoxAPIFunctions.SendMessagePoint(this.Handle, EnhTextBoxAPIFunctions.Messages.EM_GETSCROLLPOS, 0, ref lpScrollPoint);
     return new Point(lpScrollPoint.X, lpScrollPoint.Y);
 }