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>findwindow()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FindWindow()
Find a window by name
------------------------------------------------------------------------------

Syntax
FindWindow( <cClass>, <cTitle> )   -->   hWnd

Arguments
<cClass> is the window class name or NIL.  It should be the
name of a class registered with RegisterClass(), or one of
the pre-defined control-class names (button, combobox, edit,
listbox, scrollbar, or static).  If <cClass> is NIL, all
window class names match.

<cTitle> is the text to match with the title bar of the window
or NIL.  If <cTitle> is NIL, all window titles match.

Returns
If successful, a handle to a matching window is returned (a
non-zero numeric).  Otherwise, zero is returned.

Description
This function searches the top-level windows (i.e. not
including child windows) for any window matching the names
specified.  If several match, no guarantees are made as to
which handle will be returned.

Example
hMyWnd = FindWindow( "MyAppClass", "SomeWindow" )


See Also: BringWindowToTop() CloseWindow() DestroyWindow() GetWindow() IsWindow() IsWindowVisible() IsZoomed() MoveWindow() OpenIcon() ScrollWindow() ShowWindow() UpdateWindow()

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