Partager via


CMFCVisualManager::OnDrawFloatingToolbarBorder

The framework calls this method when it draws the border of a floating toolbar.

virtual void OnDrawFloatingToolbarBorder(
   CDC* pDC,
   CMFCBaseToolBar* pToolBar,
   CRect rectBorder,
   CRect rectBorderSize 
);

Parameters

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

  • [in] pToolBar
    A pointer to the floating toolbar.

  • [in] rectBorder
    A rectangle that specifies the boundaries of the floating toolbar.

  • [in] rectBorderSize
    A rectangle that specifies the border size of the toolbar.

Remarks

A floating toolbar is a toolbar that appears as a mini-frame window. Usually, this occurs when a user drags a toolbar so that it is no longer docked.

The size of the border is specified by the corresponding parameter in rectBorderSize. For example, the width of the top border of the toolbar is specified by rectBorderSize.top.

Override this method in a derived visual manager to customize the appearance of the border of a floating toolbar.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart