Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CPalette::GetNearestPaletteIndex
CPalette                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  UINT GetNearestPaletteIndex( DWORD crColor ) const;
 
  Parameter   Description
 
  <crColor>   Specifies the color to be matched.
 
  Remarks
 
  Returns the index of the entry in the logical palette that most closely
  matches the specified color value.
 
  Return Value
 
  The index of an entry in a logical palette. The entry contains the color
  that most nearly matches the specified color.
 
  See Also
 
  ::GetNearestPaletteIndex
 
 
                                     -♦-