CWnd::FindWindow

Syntax

static CWnd* FindWindow( const char FAR* lpClassName, const char FAR* lpWindowName );

Parameters

lpClassName

Points to a null-terminated string that specifies the window's class name. If lpClassName is NULL, all class names match (a WNDCLASS struct).

lpWindowName

Points to a null-terminated string that specifies the window name (the window's text caption). If lpWindowName is NULL, all window names match.

Remarks

Returns the CWnd whose class is given by lpClassName and whose window name, or caption, is given by lpWindowName. This function does not search child windows.

Return Value

Identifies the window that has the specified class name and window name. It is NULL if no such window is found.

The CWnd* may be temporary and should not be stored for later use.

See Also

::FindWindow