Using Win32 functions in Visual FoxPro Image Gallery
System Information
..msdn
ExpandEnvironmentStrings
GetComputerName
GetComputerNameEx
GetComputerObjectName
GetCurrentHwProfile
GetKeyboardType
GetNativeSystemInfo
GetProductInfo
GetSysColor
GetSystemDirectory
GetSystemInfo
GetSystemMetrics
GetSystemRegistryQuota
GetSystemWow64Directory
GetUserName
GetUserNameEx
GetVersion
GetVersionEx
GetWindowsDirectory
IsNetworkAlive
SetComputerName
SetSysColors
SystemParametersInfo
Code examples:
Changing system colors
SetSysColors
    Add comment     W32 Constants      Translate this page
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
Code examples:
Changing system colors
Declaration:
BOOL WINAPI SetSysColors(
    int  cDspElements,    // number of elements to change 
    CONST INT  *lpnDspElements,    // address of array of elements 
    CONST COLORREF  *lpdwRgbValues     // address of array of RGB values  
);
FoxPro declaration:
DECLARE INTEGER SetSysColors IN user32;
    INTEGER nChanges,;
    INTEGER @ lpSysColor,;
    INTEGER @ lpColorValues
Parameters:
cDspElements
Specifies the number of display elements in the array pointed to by the lpnDspElements parameter.

lpnDspElements
Points to an array of integers that specify the display elements to be changed. For a list of display elements, see the GetSysColor function.

lpdwRgbValues
Points to an array of unsigned long integers that contains the new red, green, blue (RGB) color value for each display element in the array pointed to by the lpnDspElements parameter.
Return value:
If the function succeeds, the return value is TRUE
My comment:
As distinct from GetSysColor the SetSysColors can change several system colors at a time. It is important to pass the second and the third parameters by their references
Word Index links for the SetSysColors :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-14 12:00:00
Modified: 2001-11-26 16:02:24
Visited in last 7 days: 47
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.136.62)
16 sec.Function: 'GdipSetPathGradientCenterPointI'
31 sec.Function: 'FormatMessage'
46 sec.Function: 'FreeLibrary'
1.02 min.Function: 'GetAncestor'
1.3 min.Function: 'GlobalUnlock'
1.57 min.Function: 'AVIStreamLength'
Function group: 'Windows Multimedia'
1.85 min.Function: 'SQLGetInfo'
2.12 min.Function: 'SCardListReaderGroups'
2.4 min.
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
2.67 min.Function: 'PaintDesktop'
Google
Advertise here!