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

Method UpdateGrid

DebugView++/SourcesDlg.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void CSourcesDlg::UpdateGrid()
49{
50 m_grid.DeleteAllItems();
51 for (auto& sourceInfo : m_sourceInfos)
52 {
53 int item = m_grid.GetItemCount();
54 m_grid.InsertItem(item, PropCreateCheckButton(L"", sourceInfo.enabled));
55 m_grid.SetSubItem(item, 1, PropCreateReadOnlyItem(L"", sourceInfo.description.c_str()));
56 m_grid.SetSubItem(item, 2, PropCreateReadOnlyItem(L"", WStr(SourceTypeToString(sourceInfo.type)).c_str()));
57 if (sourceInfo.type == SourceType::System)
58 m_grid.SetSubItem(item, 3, PropCreateReadOnlyItem(L"", L""));
59 else
60 m_grid.SetSubItem(item, 3, PropCreateReadOnlyItem(L"", L"�"));
61 }
62}
63
64BOOL CSourcesDlg::OnInitDialog(CWindow /*wndFocus*/, LPARAM /*lInitParam*/)
65{

Callers

nothing calls this directly

Calls 5

PropCreateCheckButtonFunction · 0.85
PropCreateReadOnlyItemFunction · 0.85
WStrClass · 0.85
SourceTypeToStringFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected