Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CMFCColorButton::OnDrawFocusRect

Called by the framework to display a focus rectangle when the button has focus.

virtual void OnDrawFocusRect(
   CDC* pDC,
   const CRect& rectClient 
);

[in] pDC

Points to the device context used to draw the focus rectangle.

[in] rectClient

A rectangle in the device context specified by the pDC parameter that defines the boundaries of the button.

Override this method to customize appearance of the focus rectangle.

Header: afxcolorbutton.h

Community Additions

ADD
Show:
© 2015 Microsoft