MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnBnClickedButtonAppearanceLoad

Method OnBnClickedButtonAppearanceLoad

Source/ConfigAppearance.cpp:454–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void CConfigAppearance::OnBnClickedButtonAppearanceLoad() // // // 050B
455{
456 if (auto path = GetLoadPath("Theme.txt", "", IDS_FILTER_TXT, L"*.txt")) {
457 ImportSettings(*path);
458 static_cast<CComboBox*>(GetDlgItem(IDC_FONT))->SelectString(0, m_strFont.data());
459 static_cast<CComboBox*>(GetDlgItem(IDC_FONT_SIZE))->SelectString(0, FormattedW(L"%i", m_iFontSize));
460 RedrawWindow();
461 SetModified();
462 }
463}
464
465void CConfigAppearance::ExportSettings(const fs::path &Path) const // // // 050B
466{

Callers

nothing calls this directly

Calls 3

GetLoadPathFunction · 0.85
FormattedWFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected