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

CDC::SetDCPenColor

Sets the current device context (DC) pen color to the specified color value.

COLORREF SetDCPenColor( 
   COLORREF crColor 
);

crColor

Specifies the new pen color.

Nonzero if the function is successful; otherwise 0.

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

Header: afxwin.h

Show:
© 2015 Microsoft