MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / AddChildWindows

Method AddChildWindows

WinArk/WindowsView.cpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void 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
228CTreeItem CWindowsView::AddNode(HWND hWnd, HTREEITEM hParent) {
229 CString text, name;

Callers

nothing calls this directly

Calls 2

AddChildNodeMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected