Condividi tramite


CMFCVisualManager::OnDrawRibbonCategory

The framework calls this method when it draws a CMFCRibbonCategory object.

virtual void OnDrawRibbonCategory(
   CDC* pDC,
   CMFCRibbonCategory* pCategory,
   CRect rectCategory
);

Parameters

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

  • [in] pCategory
    A pointer to a CMFCRibbonCategory object. The framework draws this ribbon category.

  • [in] rectCategory
    A rectangle that specifies the boundary of all the category panels on the ribbon.

Remarks

A ribbon category is a logical grouping of menu commands. For more information about ribbon categories, see CMFCRibbonCategory Class.

Override this method in a derived visual manager to customize the appearance of a ribbon category.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonCategory Class