| 46 | #define LONGEST_NAME 25 |
| 47 | |
| 48 | HWND getChildWindow(HWND hwnd, LPCTSTR name) |
| 49 | { |
| 50 | TCHAR pszClassName[LONGEST_NAME]; |
| 51 | HWND hwndtmp = GetWindow(hwnd, GW_CHILD); |
| 52 | while (hwndtmp != NULL) { |
| 53 | ::GetClassName(hwndtmp, pszClassName, LONGEST_NAME); |
| 54 | if (lstrcmp(pszClassName, name) == 0) { |
| 55 | return hwndtmp; |
| 56 | } |
| 57 | hwndtmp = GetWindow(hwndtmp, GW_HWNDNEXT); |
| 58 | } |
| 59 | return NULL; |
| 60 | } |
nothing calls this directly
no test coverage detected