| 77 | } |
| 78 | |
| 79 | LRESULT CSourcesDlg::OnClickItem(NMHDR* pnmh) |
| 80 | { |
| 81 | auto& nmhdr = *reinterpret_cast<NMPROPERTYITEM*>(pnmh); |
| 82 | |
| 83 | int iItem = -1; |
| 84 | int iSubItem = -1; |
| 85 | if (m_grid.FindProperty(nmhdr.prop, iItem, iSubItem) && iSubItem == 3) |
| 86 | { |
| 87 | if (GetSourceType(iItem) != SourceType::System) |
| 88 | { |
| 89 | m_grid.DeleteItem(iItem); |
| 90 | m_sourceInfos.erase(m_sourceInfos.begin() + iItem); |
| 91 | return TRUE; |
| 92 | } |
| 93 | } |
| 94 | return FALSE; |
| 95 | } |
| 96 | |
| 97 | bool CSourcesDlg::GetSourceEnable(int iItem) const |
| 98 | { |
nothing calls this directly
no test coverage detected