Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CDC::GetDCPenColor
Collapse the table of content
Expand the table of content

CDC::GetDCPenColor

Retrieves the current pen color.

COLORREF GetDCPenColor( ) const;

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

If the function fails, the return value is CLR_INVALID.

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

Header: afxwin.h

Show:
© 2015 Microsoft