Method: WinWindow#owner

Defined in:
lib/winwindow.rb

#ownerObject

The retrieved handle identifies the specified window’s owner window, if any.

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



431
432
433
434
# File 'lib/winwindow.rb', line 431

def owner
  owner_hwnd=WinUser.GetWindow(hwnd, GW_OWNER)
  @owner= owner_hwnd > 0 ? self.class.new(owner_hwnd) : nil
end