BCGControlBar Pro for MFC
virtual BOOL CBCGPVisualManager::OnNcPaint ( CWnd *  pWnd,
const CObList &  lstSysButtons,
CRect  rectRedraw 

Called by the framework to paint non-client area of a window. The method paints frame caption and borders.

pWndPointer to window whose non-client area is about to be drawn.
lstSysButtonsList of system (caption) buttons.
rectRedrawBounding rectangle.