MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnClickItem

Method OnClickItem

DebugView++/SourcesDlg.cpp:79–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79LRESULT 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
97bool CSourcesDlg::GetSourceEnable(int iItem) const
98{

Callers

nothing calls this directly

Calls 1

DeleteItemMethod · 0.80

Tested by

no test coverage detected