Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CWnd::FindWindowEx

Retrieves the window object whose class name and window name match the specified strings.

static CWnd* FindWindowEx(
   HWND hwndParent,
   HWND hwndChildAfter,
   LPCTSTR lpszClass,
   LPCTSTR lpszWindow
);

Parameters

hwndParent
Handle to the parent window whose child windows are to be searched.
hwndChildAfter
Handle to a child window. The search begins with the next child window in the Z order. The child window must be a direct child window of hwndParent, not just a descendant window.
lpszClass
Pointer to a null-terminated string that specifies the class name or a class atom created by a previous call to the RegisterClass or RegisterClassEx.
lpszWindow
Pointer to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match.

Return Value

If the function succeeds, the return value is a pointer to the window object having the specified class and window names. If the function fails, the return value is NULL.

Remarks

This member function emulates the functionality of the function FindWindowEx, as described in the Platform SDK.

See Also

CWnd Overview | Class Members | Hierarchy Chart | CWnd::FindWindow

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.