FindWindowEx FunctionThe FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window. This function does not perform a case-sensitive search.SyntaxHWND FindWindowEx( HWND hwndParent, HWND hwndChildAfter, LPCTSTR lpszClass, LPCTSTR lpszWindow ); HWND hChild = FindWindowEx(dlg_hwnd, NULL, "Button", "按钮1");
HWND hwndChildAfter,
LPCTSTR lpszClass,
LPCTSTR lpszWindow
);
HWND hChild = FindWindowEx(dlg_hwnd, NULL, "Button", "按钮1");