| 215 | } |
| 216 | |
| 217 | void CWindowsView::AddChildWindows(HTREEITEM hParent) { |
| 218 | auto hWnd = (HWND)m_Tree.GetItemData(hParent); |
| 219 | ATLASSERT(hWnd); |
| 220 | |
| 221 | m_hCurrentNode = hParent; |
| 222 | ::EnumChildWindows(hWnd, [](auto hChild, auto p)->BOOL { |
| 223 | auto pThis = (CWindowsView*)p; |
| 224 | return pThis->AddChildNode(hChild); |
| 225 | }, reinterpret_cast<LPARAM>(this)); |
| 226 | } |
| 227 | |
| 228 | CTreeItem CWindowsView::AddNode(HWND hWnd, HTREEITEM hParent) { |
| 229 | CString text, name; |
nothing calls this directly
no test coverage detected