| 929 | } |
| 930 | |
| 931 | void 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 | |
| 946 | void CMainFrame::SaveSettings(PCWSTR filename) { |
| 947 | CString path; |
nothing calls this directly
no test coverage detected