I try to implement the "SPI_SETHIGHCONTRAST"-Case in SystemParametersInfoA() at Desktop.c . To get the whole system in High-Contrast-Colors, I made a second COLORREF, called SysColorsContrast ( bellow the SysColors ). Then i put this code in the case, to change all colors:
Code: Select all
for(i = 0; i < NUM_SYSCOLORS; i++)
{
SetSysColors(NUM_SYSCOLORS, &i, &SysColorsContrast);
}
2. There should also be an Boolean to detect if the system is in HIGHCONTRAST-mode. But where?