Partager via


CMFCVisualManager::OnDrawMenuScrollButton

The framework calls this method when it draws a menu scroll button.

virtual void OnDrawMenuScrollButton(
   CDC* pDC,
   CRect rect,
   BOOL bIsScrollDown,
   BOOL bIsHighlited,
   BOOL bIsPressed,
   BOOL bIsDisabled
);

Parameters

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

  • [in] rect
    A rectangle that specifies the boundaries of the scroll button.

  • [in] bIsScrollDown
    A Boolean that indicates which type of button the visual manager draws. A value of TRUE indicates the visual manager draws a down button.

  • [in] bIsHighlited
    A Boolean that indicates whether the button is highlighted.

  • [in] bIsPressed
    A Boolean that indicates whether the button is pressed.

  • [in] bIsDisabled
    A Boolean that indicates whether the button is disabled.

Remarks

Override this method in a derived visual manager to customize the appearance of menu scroll buttons. Menu scroll buttons appear on the edge of pop-up menus when the total height of the menu items exceeds the height of the pop-up menu.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart