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

Method RefreshItem

WinArk/View.cpp:1088–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088bool CRegistryManagerView::RefreshItem(HTREEITEM hItem) {
1089 auto expanded = m_Tree.GetItemState(hItem, TVIS_EXPANDED);
1090 m_Tree.LockWindowUpdate();
1091 m_Tree.Expand(hItem, TVE_COLLAPSE | TVE_COLLAPSERESET);
1092 TreeHelper th(m_Tree);
1093 th.DeleteChildren(hItem);
1094 m_Tree.InsertItem(L"\\\\", hItem, TVI_LAST);
1095 if (expanded)
1096 m_Tree.Expand(hItem, TVE_EXPAND);
1097 m_Tree.LockWindowUpdate(FALSE);
1098 UpdateList(true);
1099 return true;
1100}
1101
1102
1103LRESULT CRegistryManagerView::OnTreeRefresh(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) {

Callers

nothing calls this directly

Calls 3

ExpandMethod · 0.80
DeleteChildrenMethod · 0.80
InsertItemMethod · 0.80

Tested by

no test coverage detected