This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.
virtual void OnDrawCaptionBarButtonBorder(
   CDC* pDC,
   CMFCCaptionBar* pBar,
   CRect rect,
   BOOL bIsPressed,
   BOOL bIsHighlighted,
   BOOL bIsDisabled,
   BOOL bHasDropDownArrow,
   BOOL bIsSysButton
);
Parameters
[in] pDC
[in] pBar
[in] rect
[in] bIsPressed
[in] bIsHighlighted
[in] bIsDisabled
[in] bHasDropDownArrow
[in] bIsSysButton
Requirements
Header: afxvisualmanager.h