Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
SetPalette
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
VOID SetPalette(nStartIndex, nNumEntries, lpPalette)
WORD nStartIndex;
WORD nNumEntries;
LPRGBQUAD lpPalette;
 
The SetPalette function sets one or more entries in the hardware-color
palette to the specified colors.
 
A graphics driver must export the GetPalette function if the RC_PALETTE
value is set in the dpRaster member of the driver's GDIINFO structure.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
nStartIndex  Specifies a zero-based, color-palette index. The function
             copies color values to the corresponding hardware-palette entry
             and to subsequent entries up to the number specified by the
             nNumEntries parameter.
 
nNumEntries  Specifies the number of entries to set in the hardware
             palette.
 
lpPalette    Points to an array of RGBQUAD structures specifying the colors
             to which to set the hardware-palette entries.
 
Return Value
 
This function has no return value.
 
Comments
 
The export ordinal for this function is 22.
 
See Also
 
GetPalette