Example #1
0
 /**
  * Get the next top-level window in Z-order, (from foreground to background).
  *
  * <p>To iterate all windows, use
  *
  * <p>for (Window w = getForegroundWindow(); !w.isNull(); w = w.next()) ...
  *
  * @return
  */
 public Window next() {
   return new Window(User32.INSTANCE.GetWindow(hWnd, new DWORD(2))); // 2 =
   // GW_HWNDNEXT
 }