title: Disable autoscrolling when inserting in List View (win32 API, C)
body: <p>I'm inserting an item in my common control listview like this:</p>
  
  <pre><code>void InsertRow (HWND hWnd, char *col1, char *col2)
  {
      LV_ITEM     lvItem;
  
      lvItem.mask = 0;
      lvItem.iItem = 0;
      lvItem.iSubItem = 0;
      lvItem.iItem = ListView_InsertItem (hWnd, &amp;lvItem);
  
      lvItem.mask = LVIF_TEXT;
      lvItem.pszText = col1;
      lvItem.cchTextMax = strlen (lvItem.pszText);
      ListView_SetItem (hWnd, &amp;lvItem);
  
      lvItem.iSubItem = 1;
      lvItem.pszText = col2;
      lvItem.cchTextMax = strlen (lvItem.pszText);
      ListView_SetItem (hWnd, &amp;lvItem);
  }
  </code></pre>
  
  <p>and works fine, but it is a pain because the vertical scroll goes back to the top of the list, so if I'm watching an item and call this insert function I lost my view, and have to scroll back manually, making my program impossible to work with.</p>
  
  <p>How ca I prevent this autoscrolling?</p>
  
  <p>I'm programming in C, with the win32 API directly (not MFC).</p>
  
  <p>P.D.: ListView style:
  <code>LVS_SINGLESEL | WS_BORDER | WS_TABSTOP | WS_CHILD|WS_VISIBLE|WS_BORDER|WS_VSCROLL|WS_HSCROLL|LVS_REPORT</code></p>