[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  GetWindow( hWnd, nRelationShip )-> <hWndSearched>
------------------------------------------------------------------------------


 PARAMETER:

  <hWnd>          Is the handle that identifies the original window

  <nRelationShip> Specifies the relationship between the original
                  function and the returned window. This parameter can be
                  one of the following values:

                   GW_CHILD [5] Identifies the window's first child window.
                   GW_HWNDFIRST Returns the first sibling window for a child
                            [0] window; otherwise, it returns the first top-
                                level window in the list.
                   GW_HWNDLAST  Returns the last sibling window for a child
                            [1] window; otherwise, it returns the last top-
                                level window in the list.
                   GW_HWNDNEXT  Returns the sibling window that follows the
                            [2] given window in the window manager's list.
                   GW_HWNDPREV  Returns the previous sibling window in the
                            [3] window manager's list.
                   GW_OWNER [4] Identifies the window's owner.


 RETURNS:

  <hWndSearched> is the handle of the searched window, or zero if the
  function failed.


 DESCRIPTION:
  
  The GetWindow function retrieves the handle of a window that has the
  specified relationship to the given window. The function searches the
  system's list of top-level windows, their associated child windows, the
  child windows of any child windows, and any siblings of the owner of a
  window. 

 SOURCE:

  SOURCE\WINAPI\GETWND.C



See Also: GetParent FindWindow
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson