다음을 통해 공유


CMFCVisualManager::OnDrawAutoHideButtonBorder

The framework calls this method when it draws the border of an auto-hide button.

virtual void OnDrawAutoHideButtonBorder(
   CDC* pDC,
   CRect rectBounds,
   CRect rectBorderSize,
   CMFCAutoHideButton* pButton 
);

Parameters

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

  • [in] rectBounds
    The size and location of the auto-hide button.

  • [in] rectBorderSize
    A CRect parameter that contains the sizes of the borders.

  • [in] pButton
    A pointer to the auto-hide button. The framework is drawing the border for this button.

Remarks

Override this method in a derived class if you want to customize the appearance of the border of an auto-hide button. By default, this method fills a flat border with the default shadow color for your application.

The rectBorderSize parameter does not contain the coordinates of the border. It contains the size of the border in the top, bottom, left, and right data members. A value less than or equal to 0 indicates no border on that side of the auto-hide button.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart