| 1721 | |
| 1722 | |
| 1723 | BOOL CALLBACK EnumChildFindSeqNum(HWND aWnd, LPARAM lParam) |
| 1724 | { |
| 1725 | class_and_hwnd_type &cah = *(class_and_hwnd_type *)lParam; // For performance and convenience. |
| 1726 | TCHAR class_name[WINDOW_CLASS_SIZE]; |
| 1727 | if (!GetClassName(aWnd, class_name, _countof(class_name))) |
| 1728 | return TRUE; // Continue the enumeration. |
| 1729 | if (!_tcscmp(class_name, cah.class_name)) // Class names match. |
| 1730 | { |
| 1731 | ++cah.class_count; |
| 1732 | if (aWnd == cah.hwnd) // The caller-specified window has been found. |
| 1733 | { |
| 1734 | cah.is_found = true; |
| 1735 | return FALSE; |
| 1736 | } |
| 1737 | } |
| 1738 | return TRUE; // Continue enumeration until a match is found or there aren't any windows remaining. |
| 1739 | } |
| 1740 | |
| 1741 | |
| 1742 |
nothing calls this directly
no outgoing calls
no test coverage detected