如何撤消 SetSysColors()?
How do I undo SetSysColors()?
所以我执行了:
int elements[2] = {COLOR_HIGHLIGHT,COLOR_HIGHLIGHTTEXT};
DWORD newColors[2];
newColors[0] = Color::IndianRed.ToArgb();
newColors[1] = Color::Maroon.ToArgb();
SetSysColors(2,elements,newColors);
我认为它可能会做我希望它不会做的事..但现在它做到了我 select 看起来像这样的一切:
让我的系统恢复到原来状态的默认值是多少?我是 运行 Windows 10.
引用 MSDN:
However, this function affects only the current session. The new colors are not saved when the system terminates.
只需重新启动您的机器。
所以我执行了:
int elements[2] = {COLOR_HIGHLIGHT,COLOR_HIGHLIGHTTEXT};
DWORD newColors[2];
newColors[0] = Color::IndianRed.ToArgb();
newColors[1] = Color::Maroon.ToArgb();
SetSysColors(2,elements,newColors);
我认为它可能会做我希望它不会做的事..但现在它做到了我 select 看起来像这样的一切:
让我的系统恢复到原来状态的默认值是多少?我是 运行 Windows 10.
引用 MSDN:
However, this function affects only the current session. The new colors are not saved when the system terminates.
只需重新启动您的机器。