CMFCButton::OnFillBackground

Called by the framework to draw the background of the button text.

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

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] rectClient
    A reference to a rectangle that bounds the button.

Remarks

Override this method to use your own code to draw the background of a button.

Requirements

Header: afxbutton.h

See Also

Reference

CMFCButton Class

Hierarchy Chart