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

Method WriteColor

WinArk/IniFile.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool IniFile::WriteColor(PCWSTR section, PCWSTR name, COLORREF color) {
101 CString text;
102 text.Format(L"%d,%d,%d", GetRValue(color), GetGValue(color), GetBValue(color));
103 return WriteString(section, name, text);
104}
105
106bool IniFile::WriteFont(PCWSTR section, PCWSTR name, const LOGFONT& font) {
107 return ::WritePrivateProfileStruct(section, name, (PVOID)&font, sizeof(font), _path);

Callers 1

SaveColorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected