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


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

COLORREF SetDCBrushColor( 
   COLORREF crColor 

Specifies the new brush color.

If the function succeeds, the return value specifies the previous DC brush color as a COLORREF value.

If the function fails, the return value is CLR_INVALID.

This method emulates the functionality of the function SetDCBrushColor, 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.