| 1086 | } |
| 1087 | |
| 1088 | bool 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 | |
| 1103 | LRESULT CRegistryManagerView::OnTreeRefresh(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { |
nothing calls this directly
no test coverage detected