CColorDialog::GetColor
Visual Studio 2010
Call this function after calling DoModal to retrieve the information about the color the user selected.
COLORREF GetColor( ) const;
A COLORREF value that contains the RGB information for the color selected in the color dialog box.