Share via


CMFCBaseVisualManager::DrawPushButton

Draws a push button using the current Windows theme.

virtual BOOL DrawPushButton(
   CDC* pDC, 
   CRect rect, 
   CMFCButton* pButton, 
   UINT uiState 
);

Parameters

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

  • [in] rect
    The bounding rectangle of the push button.

  • [in] pButton
    A pointer to the CMFCButton Class object to draw.

  • [in] uiState
    Ignored. The state is taken from pButton.

Return Value

TRUE if Theme API is enabled; otherwise FALSE.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCBaseVisualManager Class

Hierarchy Chart