Share via


CMFCButton::OnDraw

Called by the framework to draw a button.

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

Parameters

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

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

  • [in] uiState
    The current button state. For more information, see the itemState member of the DRAWITEMSTRUCT Structure topic.

Remarks

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

Requirements

Header: afxbutton.h

See Also

Reference

CMFCButton Class

Hierarchy Chart