title: Capturing data from a ProBrowser control with WinAPI
body: <p>I'm attempting to read the lines off of a control in an unmanaged application.  I've been using the ManagedWinapi to wrap pinvokes, and for the most part it's gotten me where I need to be.  I can find the control (it's a ProBrowser class, not sure exactly what that is) and view properties, but none of the information I need is available.  Instead, the ProBrowser has nine child elements, all textboxes with matching properties: <code>Password: false, MultiLine: false</code>, and <code>Text: &lt;blank&gt;</code>.  I'm assuming these are the column headers, but there's not much to go off of.  This is as far down the chain as I'm able to get, and at no level do I seem to have access to the actual contents of the list.</p>
  
  <pre><code>SystemWindow list = new SystemWindow(ptr); // latching onto the ProBrowser
  
  SystemWindow[] pieces = list.AllDescendantWindows; // same results if using .AllChildWindows
  
  foreach (SystemWindow y in pieces) {
      ManagedWinapi.Windows.Contents.TextContent tc = (ManagedWinapi.Windows.Contents.TextContent)y.Content; // ListContent returns null here and on the parent control
      Console.WriteLine(tc.LongDescription);
      Console.WriteLine(tc.ComponentType);
  
      foreach (KeyValuePair&lt;string, string&gt; kvp in tc.PropertyList) {
          Console.WriteLine("\t" + kvp.Key + ", " + kvp.Value);
      }
  
      Console.WriteLine("\tText: " + GetText(y.HWnd));
  }
  </code></pre>
  
  <p><code>GetText</code> is simply a wrapper for <code>GetWindowText</code>.  It returns text for other controls like buttons just fine, but it doesn't pull anything from the ProBrowser.</p>
  
  <p>Now I'm stuck.  I'm not sure how else to grab the data from the list, as it doesn't seem to be appearing anywhere accessible.  I've included a screenshot of the window in question, if its any help.</p>
  
  <p><img src="https://i.stack.imgur.com/Yyb7a.png" alt="alt text"></p>