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

Method FindChild

WinArk/TreeHelper.cpp:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "TreeHelper.h"
3
4HTREEITEM TreeHelper::FindChild(HTREEITEM item, PCWSTR name) const {
5 item = _tv.GetChildItem(item);
6 while (item) {
7 CString text;
8 _tv.GetItemText(item, text);
9 if (text.CompareNoCase(name) == 0)
10 return item;
11 item = _tv.GetNextSiblingItem(item);
12 }
13 return nullptr;
14}
15
16HTREEITEM TreeHelper::FindItem(HTREEITEM hParent, PCWSTR path) {
17 int start = 0;

Callers 6

OnDoubleClickListMethod · 0.80
BuildKeyPathMethod · 0.80
FindItemByPathMethod · 0.80
OnTreeEndEditMethod · 0.80
RefreshFullMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected