Partager via


CMFCToolBar::DrawSeparator

Repaints a separator on a toolbar.

virtual void DrawSeparator(
   CDC* pDC,
   const CRect& rect,
   BOOL bHorz 
);

Parameters

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

  • [in] rect
    The bounding rectangle of the location where the separator is drawn, in pixels.

  • [in] bHorz
    TRUE if the separator is horizontal, FALSE if the separator is vertical.

Remarks

CMFCToolBar::DoPaint calls this method for each CMFCToolBar::DrawSeparator object that has the TBBS_SEPARATOR style, instead of calling CMFCToolBar::DrawButton for those buttons.

Override this method in a class derived from CMFCToolBar Class to customize the appearance of separators on the toolbar. The default implementation calls CMFCVisualManager::OnDrawSeparator to draw a separator whose appearance is determined by the current visual manager.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart