Bagikan melalui


CMFCVisualManagerWindows7::OnFillMenuImageRect

The framework calls this method when it fills area around a menu item image.

virtual void OnFillMenuImageRect(
   CDC* pDC,
   CMFCToolBarButton* pButton,
   CRect rect,
   CMFCVisualManager::AFX_BUTTON_STATE state
);

Parameters

  • [in] pDC
    A pointer to the device context of a menu button.

  • [in] pButton
    A pointer to a CMFCToolBarButton. The framework fills the background for this button.

  • [in] rect
    A rectangle that specifies the boundaries of the menu button image area.

  • [in] state
    The button state.

Requirements

Header: afxvisualmanagerwindows7.h

See Also

Reference

CMFCVisualManagerWindows7 Class

CMFCVisualManagerWindows7 Class

Hierarchy Chart

CMFCToolBarButton Class