Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CDC::GetNearestColor

Returns the solid color that best matches a specified logical color.

COLORREF GetNearestColor( 
   COLORREF crColor  
) const;
crColor

Specifies the color to be matched.

An RGB (red, green, blue) color value that defines the solid color closest to the crColor value that the device can represent.

The given device must be able to represent this color.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.