MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / EnumChildFindSeqNum

Function EnumChildFindSeqNum

source/script2.cpp:1723–1739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1721
1722
1723BOOL 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected