title: GetWindowTextA, GetWindowText returns empty value on Edit Control
body: <p>I'm trying to list and get the content of Edit Controls from an external Window in C++ / Java, unfortunately with no success.</p>
  
  <p>When I call GetWindowText or GetWindowTextA it returns an empty value on Edit Controls, I know there are some differences between GetWindowText / GetWindowTextW and GetWindowTextA but I don't know What I'm doing wrong since it works on all other controls.</p>
  
  <p>Here the C++ Code:</p>
  
  <pre><code>BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam)
  {
      cout &lt;&lt;"----------CHILD------------"&lt;&lt;endl;
      char class_name[80];
      char title[80];
      GetClassName(hwnd,class_name, sizeof(class_name));
      GetWindowText(hwnd,title,sizeof(title));
      cout &lt;&lt;"\tWindow title: "&lt;&lt;title&lt;&lt;endl;
      cout &lt;&lt;"\tClass name: "&lt;&lt;class_name&lt;&lt;endl&lt;&lt;endl;
       return TRUE;
  }
  </code></pre>
  
  <p>Java Code:</p>
  
  <pre><code>User32.INSTANCE.EnumChildWindows(hWnd, new User32.WNDENUMPROC() {
      @Override
      public boolean callback(Pointer   hWnd, Pointer   arg) {
          byte[] windowClassx = new byte[512];
          User32.INSTANCE.GetClassNameA(hWnd, windowClassx, 512);
          String wClass = Native.toString(windowClassx);
          System.out.println(" - Found sub window / control class: " + new String(windowClassx).trim());
          if (wClass.toLowerCase().equals("edit")){
              byte[] windowTextx = new byte[128];
              user32.GetWindowText(hWnd, windowTextx, 128);
              String wText = Native.toString(windowTextx);
              System.out.println(wText);
          }
  
          return true;
      }
  }, null);  
  </code></pre>