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

Method LoadSettings

WinArk/MainFrame.cpp:931–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931void CMainFrame::LoadSettings(PCWSTR filename) {
932 CString path;
933 if (filename == nullptr) {
934 path = GetDefaultSettingsFile();
935 filename = path;
936 }
937 ThemeColor colors[(int)TableColorIndex::COUNT];
938 bool success = LoadColors(filename, L"TableColor", colors, _countof(colors));
939 if (success) {
940 SetColor(colors, _countof(colors));
941 InitPenSys();
942 InitBrushSys();
943 }
944}
945
946void CMainFrame::SaveSettings(PCWSTR filename) {
947 CString path;

Callers

nothing calls this directly

Calls 3

LoadColorsFunction · 0.85
InitPenSysFunction · 0.85
InitBrushSysFunction · 0.85

Tested by

no test coverage detected