[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FindWindow( cClassName, cTitle )-> <hWnd>
------------------------------------------------------------------------------
PARAMETER:
<cClassName> Is the API class name of the window to search. For a
FiveWin Window, this is "TWINDOW". If you don't supply a
class name, then any class will match.
<cTitle> Is the Windows title, or the controls caption, that is
used to identify the window. If you don't supply the title,
then any title will match.
RETURNS:
<hWnd> is the handle of the window that has the specified class name
and window name if the function is successful. Otherwise, it is zero.
DESCRIPTION:
The FindWindow function retrieves the handle of the window whose class
name and window name match the specified strings. This function does not
search child windows.
EXAMPLE:
+--------------------------------------------------------------+
| /* Search for the main window of windows control panel, |
| and, if not found, start the control panel */ |
| IF( FindWindow( "CtlPanelClass", "Control Panel" ) == 0 |
| WinExec( "CONTROL.EXE" ) |
| ENDIF |
+--------------------------------------------------------------+
SOURCE:
SOURCE\WINAPI\WNDIS.C
See Also:
GetWindow
GetParent
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson