title: How to emulate a mouse scroll for the current window opened?
body: <p>I'm currently trying to emulate a mouse scroll event on the current window opened.I'm implementing it using setscrollpos() function in visual C++.</p>
  
  <pre><code>    SetScrollPos(hwnd,SB_VERT,0,TRUE);
  
      UpdateWindow(hwnd);
  </code></pre>
  
  <p>How does one pass the name of current window opened to the parameter hwnd?</p>