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

Method OnNewKey

WinArk/View.cpp:1079–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079LRESULT CRegistryManagerView::OnNewKey(WORD, WORD, HWND, BOOL&) {
1080 m_Tree.GetSelectedItem().Expand(TVE_EXPAND);
1081 auto hItem = InsertKeyItem(m_Tree.GetSelectedItem(), L"(NewKey)");
1082 hItem.EnsureVisible();
1083 m_CurrentOperation = Operation::CreateKey;
1084 m_Tree.EditLabel(hItem);
1085 return 0;
1086}
1087
1088bool CRegistryManagerView::RefreshItem(HTREEITEM hItem) {
1089 auto expanded = m_Tree.GetItemState(hItem, TVIS_EXPANDED);

Callers

nothing calls this directly

Calls 1

ExpandMethod · 0.80

Tested by

no test coverage detected