Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getwindow()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetWindow()
Return a related window
------------------------------------------------------------------------------

Syntax
GetWindow( <hWnd>, <nRelation> )   -->   hNewWnd

Arguments
<hWnd> is a handle to a window.

<nRelation> is the relationship of the new window to the
<hWnd> window.  (Use one of the GW_* values defined in
WINDOWS.CH.)

Returns
If successful, a handle to the related window is returned as
an integer.  Otherwise, zero (0) is returned.

Description
This function can be used to retrieve a handle to a window
that has a specified relationship to the window handle
specified.

Example
hWndOwner = GetWindow( hWnd, GW_OWNER ) // handle of owner
? "This window has an owner: ", hWndOwner != 0


See Also: BringWindowToTop() CloseWindow() CreateWindow() DestroyWindow() FindWindow() MoveWindow() OpenIcon() ScrollWindow() SelectWindow() ShowWindow() UpdateWindow()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson