Partager via


CMFCRibbonGallery::AddGroup

Adds a new group to the gallery.

void AddGroup(
    LPCTSTR lpszGroupName,
    UINT uiImagesPaletteResID,
    int cxPaletteImage 
);
void AddGroup(
    LPCTSTR lpszGroupName,
    CMFCToolBarImages& imagesGroup 
);
void AddGroup(
    LPCTSTR lpszGroupName,
    int nIconsNum 
);

Parameters

  • [in] lpszGroupName
    Specifies the name of the group.

  • [in] uiImagesPaletteResID
    Specifies the resource ID of the image list that contains the images for the group.

  • [in] cxPaletteImage
    Specifies the width in pixels of an image.

  • [in] imagesGroup
    A reference to image list that contains group images.

  • [in] nIconsNum
    Specifies the number of icons in the group. This parameter should be specified only for custom (owner drawn) groups.

Remarks

You can divide the items on a ribbon gallery into multiple groups by calling this method. Each group can have a caption.

Requirements

Header: afxRibbonPaletteGallery.h

See Also

Reference

CMFCRibbonGallery Class

Hierarchy Chart