c++ - How can I change my system colors to default? -


in c++ application wrongly changed system color:

const int val = color_highlighttext;   const colorref color = rgb(255,0,0);   ::setsyscolors(1, &val, &color); 

how can restore backwards default settings?

the documentation on setsyscolors() @ http://msdn.microsoft.com/en-us/library/windows/desktop/ms724940%28v=vs.85%29.aspx says "the new colors not saved when system terminates." rebooting colours back.

there example of how copy of colors getsyscolors() before changing them setsyscolors(), , shows how restore colors.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -