BCGControlBar Pro for MFC
virtual void CBCGPVisualManager::OnDrawMenuSystemButton ( CDC *  pDC,
CRect  rect,
UINT  uiSystemCommand,
UINT  nStyle,
BOOL  bHighlight 
)
virtual

Called by the framework to display the menu system buttons.

This function is called by the framework to display the menu system buttons (close, minimize, restore).

The default implementation calls CDC::DrawFrameControl with DFC_CAPTION type. Override this member function in your CBCGPVisualManager - derived class to customize the system button appearance.

Parameters
pDCA pointer to device context.
rectSpecifies the bounding rectangle of the button to draw.
uiSystemCommandSpecifies the system command associated with the button (SC_CLOSE, SC_MINIMIZE, SC_RESTORE).
nStyleSpecifies the current style of the button (TBBS_PRESSED, TBBS_DISABLED or 0).
bHighlightSpecifies whether the button is highlighted.