Wiki Home

Set Sys Colors


Namespace: VFP

The source is Using Win32 functions in Visual FoxPro

This function sets the colors for one or more display elements. Display elements are the various parts of a window and the Windows display that appear on the system display screen.

FoxPro declaration:
DECLARE INTEGER SetSysColors IN "user32"; 
    INTEGER nChanges,; 
    INTEGER @ lpSysColor,; 
    INTEGER @ lpColorValues

Note using this pretty much violates the Windows design guidlines. The enduser is in control of what colors are used for items in their environment. -- df
It should be similar to separate address spaces, may be. So the process could change its own system colors without affecting others. Well, the things look like they are. Probably MS people had their own reasons to do so.
Category Windows API
( Topic last updated: 2001.07.31 08:44:14 PM )