void SetDestTopColor() { // window elements to change int aiElements[] = { COLOR_BACKGROUND, COLOR_DESKTOP, COLOR_ACTIVEBORDER, COLOR_ACTIVECAPTION, COLOR_WINDOW }; // array of RGB values // Define the new colors. DWORD aColors[] = { RGB(138, 200, 255), // RGB(0, 80, 150), RGB(0x80, 0x00, 0x80), // dark purple RGB(0x00, 0x80, 0x80), // dark cyan RGB(0xC0, 0xC0, 0xC0), // light gray }; // Set the window elements in aiElements to the colors // specified in aColors. SetSysColors(5, aiElements, aColors); }