This documentation is archived and is not being maintained.

CDC::GetDCPenColor 

Retrieves the current pen color.


COLORREF GetDCPenColor( ) const;

If the function succeeds, the return value is the COLORREF value for the current brush color.

If the function fails, the return value is CLR_INVALID.

This member function utilizes the Win32 function GetDCPenColor, as described in the Platform SDK.

Show: