Method: WinWindow#top_window

Defined in:
lib/winwindow.rb

#top_windowObject

examines the Z order of the child windows associated with self and retrieves a handle to the child window at the top of the Z order

msdn.microsoft.com/en-us/library/ms633514(VS.85).aspx



473
474
475
476
# File 'lib/winwindow.rb', line 473

def top_window
  ret_hwnd= WinUser.GetTopWindow(hwnd)
  @top_window= ret_hwnd > 0 ? self.class.new(ret_hwnd) : nil
end