MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / UpdateConfig

Method UpdateConfig

WinArk/FiltersDlg.cpp:86–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void CFiltersDlg::UpdateConfig(FilterConfiguration& config) {
87 config.Clear();
88 FilterDescription desc;
89 CString text;
90 for (int i = 0; i < m_List.GetItemCount(); i++) {
91 m_List.GetItemText(i, 0, text);
92 desc.Name = text;
93 desc.Enabled = m_List.GetCheckState(i) ? true : false;
94 m_List.GetItemText(i, 1, text);
95 m_CompareTypes.SelectString(-1, text);
96 desc.Compare = (CompareType)m_CompareTypes.GetItemData(m_CompareTypes.GetCurSel());
97 m_List.GetItemText(i, 2, text);
98 desc.Parameters = text;
99 m_List.GetItemText(i, 3, text);
100 m_IncExc.SelectString(-1, text);
101 desc.Action = (FilterAction)m_IncExc.GetItemData(m_IncExc.GetCurSel());
102 config.AddFilter(desc);
103 }
104}
105
106LRESULT CFiltersDlg::OnInitDialog(UINT, WPARAM, LPARAM, BOOL&) {
107

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
AddFilterMethod · 0.45

Tested by

no test coverage detected