User32SetSysColors Method

Sets the colors for the specified display elements.

Display elements are the various parts of a window and the display that appear on the system display screen.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool SetSysColors(
	int amount,
	int[] elements,
	uint[] rgbValues
)

Parameters

amount  Int32
The number of display elements in the elements array.
elements  Int32
An array of integers that specify the display elements to be changed.
rgbValues  UInt32
An array of COLORREF values that contain the new RGB color values for the display elements in the array pointed to by the elements parameter.

Return Value

Boolean
If the function succeeds, the return value is ; If the function fails, the return value is .

To get extended error information, call GetLastWin32Error.

Remarks

See Also