This documentation is archived and is not being maintained.


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