title: Windows UI Automation not showing all child elements?
body: <p>I have a TreeView control on my form, and I'm recursively going through the elements of another window starting with the window itself. I'm  using this to find the elements:</p>
  
  <pre><code>getRecursiveElements(AutomationElement parent)
  {
    children = parent.FindAll(TreeScope.Children, Condition.TrueCondition);
  
    foreach (AutomationElement child in children)
    {
      addToTreeView(child);
      getRecursiveElements(child);
    }
  }
  </code></pre>
  
  <p>Generally speaking, the code works quite well in most cases. The tree is populated and I have a bit of other supporting code allowing me to double click, for example, an element in the tree-view and it will highlight that element on the target form.</p>
  
  <p>The issue I'm having is that, while it generates an awesome tree, there are still some elements missing for certain target programs.</p>
  
  <p>What possible reason could there be for this, and is there any way to get around it?
  If I call <code>EnumChildWindows()</code> from user32.dll will that have the same problem?</p>