CString CBrowseRefsDlg::GetFullRefName(CString partialRefName) { CShadowTree* pLeaf = m_TreeRoot.FindLeaf(partialRefName); if(pLeaf == NULL) return CString(); return pLeaf->GetRefName(); }
void CBrowseRefsDlg::OnItemChangedListRefLeafs(NMHDR *pNMHDR, LRESULT *pResult) { LPNMLISTVIEW pNMListView = reinterpret_cast<LPNMLISTVIEW>(pNMHDR); *pResult = 0; CShadowTree *item = (CShadowTree*)m_ListRefLeafs.GetItemData(pNMListView->iItem); if (item && pNMListView->uNewState == 2) m_sLastSelected = item->GetRefName(); }