Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the solid color that best matches a specified logical color.
COLORREF GetNearestColor(
COLORREF crColor
) const;
Parameters
- crColor
Specifies the color to be matched.
Return Value
An RGB (red, green, blue) color value that defines the solid color closest to the crColor value that the device can represent.
Remarks
The given device must be able to represent this color.
Requirements
Header: afxwin.h
See Also
Reference
CPalette::GetNearestPaletteIndex