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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function SetSysColors (
amount As Integer,
elements As Integer(),
rgbValues As UInteger()
) As Boolean
Dim amount As Integer
Dim elements As Integer()
Dim rgbValues As UInteger()
Dim returnValue As Boolean
returnValue = User32.SetSysColors(amount,
elements, rgbValues)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool SetSysColors(
int amount,
array<int>^ elements,
array<unsigned int>^ rgbValues
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member SetSysColors :
amount : int *
elements : int[] *
rgbValues : uint32[] -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
If the function succeeds, the return value is
;
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.