| 46 | } |
| 47 | |
| 48 | void 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 | |
| 64 | BOOL CSourcesDlg::OnInitDialog(CWindow /*wndFocus*/, LPARAM /*lInitParam*/) |
| 65 | { |
nothing calls this directly
no test coverage detected