Share via


CWnd::FindWindow

staticCWnd*PASCALFindWindow(LPCTSTRlpszClassName**,LPCTSTRlpszWindowName);**

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.

Parameters

lpszClassName

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

lpszWindowName

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

Remarks

Returns the top-level CWnd whose window class is given by lpszClassName and whose window name, or title, is given by lpszWindowName. This function does not search child windows.

CWnd OverviewClass MembersHierarchy Chart

See Also