BCGControlBar Pro for MFC
virtual void CBCGPVisualManager::OnDrawCaptionButton ( CDC *  pDC,
CBCGPCaptionButton pButton,
BOOL  bActive,
BOOL  bHorz,
BOOL  bMaximized,
BOOL  bDisabled,
int  nImageID = -1 
)
virtual

Called by the framework to draw a caption button.

The default implementation displays a small button from the global CBCGPMenuImages object. There are several different buttons to draw: CBCGPMenuImages::IdClose, CBCGPMenuImages::IdArowLeft, CBCGPMenuImages::IdArowRight, CBCGPMenuImages::IdArowDown, CBCGPMenuImages::IdArowUp, CBCGPMenuImages::IdPinHorz.

Override this member function in your CBCGPVisualManager - derived class to customize the button appearance.

Parameters
pDCA pointer to a device context.
pButtonA pointer to a caption button to draw.
bActiveSpecifies whether the button is active.
bHorzSpecifies whether the caption is horizontal.
bMaximizedSpecifies whether the parent control bar is maximized.
bDisabledSpecifies whether the caption button is disabled.
nImageIDIndex in the global menu image list
See also
CBCGPCaptionButton