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


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

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