title: How to send a scrollbar grip to the very top position with one single command?
body: <p>It is easy to send a control's scrollbar from the <em>very bottom position</em> to the <em>very top position</em> by sending a <code>WM_VSCROLL</code> message REPEATEDLY to the control:</p>
  
  <pre><code>ScrollBox1.Perform(WM_VSCROLL, MakeWParam(SB_PAGEUP, 0), 0);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/cSRkw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cSRkw.png" alt="enter image description here"></a></p>
  
  <p>But this requires knowing how many times I have to send the message to the control to set the scrollbar to the very top position, depending on the proportional size of the scrollbar grip in relation to the scrollbar's height. Alternatively, I can send the message repeatedly for an irrational amount of times which seems not being the best solution.</p>
  
  <p>So how can I send the scrollbar to the very top with <strong>ONE SINGLE command</strong> independently from the proportional size of the scrollbar grip in relation to the scrollbar's height?</p>