共用方式為


CMFCRibbonBar::DrawMenuImage

Draws the image for a menu button.

BOOL DrawMenuImage(
   CDC* pDC,
   const CMFCToolBarMenuButton* pMenuItem,
   const CRect& rectImage
);

Parameters

  • [in] pDC
    Pointer to a device context for the menu button.

  • [in] pMenuItem
    Pointer to a toolbar menu button.

  • [in] rectImage
    The display rectangle for a menu button.

Return Value

TRUE if the image was drawn; otherwise FALSE.

Requirements

Header: afxribbonbar.h

See Also

Reference

CMFCRibbonBar Class

Hierarchy Chart