CDC::GetNearestColor

This member function retrieves the solid color that best matches a specified logical color. The given device must be able to represent this color.

Syntax

COLORREF GetNearestColor( COLORREF crColor ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CDC Overview, CDC Member Functions, Graphical Drawing Classes