Share via


CMFCColorButton::OnDraw

Called by the framework to render an image of the button.

virtual void OnDraw(
   CDC* pDC,
   const CRect& rect,
   UINT uiState 
);

Parameters

  • [in] pDC
    Points to the device context that is used to render the image of the button.

  • [in] rect
    A rectangle that bounds the button.

  • [in] uiState
    Specifies the visual state of the button.

Remarks

Override this method to customize the rendering process.

Requirements

Header: afxcolorbutton.h

See Also

Reference

CMFCColorButton Class

Hierarchy Chart