Share via


CMFCColorButton::OnDrawFocusRect

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

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

Parameters

  • [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.

Remarks

Override this method to customize appearance of the focus rectangle.

Requirements

Header: afxcolorbutton.h

See Also

Reference

CMFCColorButton Class

Hierarchy Chart