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

Method OnSave

WinArk/FiltersDlg.cpp:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207LRESULT CFiltersDlg::OnSave(WORD, WORD wID, HWND, BOOL&) {
208 CSimpleFileDialog dlg(FALSE, L"ini", nullptr, OFN_EXPLORER | OFN_OVERWRITEPROMPT | OFN_ENABLESIZING, SaveLoadIniFilter, *this);
209 if (dlg.DoModal() == IDOK) {
210 FilterConfiguration config;
211 UpdateConfig(config);
212 config.Save(dlg.m_szFileName);
213 }
214 return 0;
215}
216
217LRESULT CFiltersDlg::OnLoad(WORD, WORD wID, HWND, BOOL&) {
218 CSimpleFileDialog dlg(TRUE, L"ini", nullptr, OFN_EXPLORER | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST, SaveLoadIniFilter, *this);

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.45

Tested by

no test coverage detected