Condividi tramite


CMFCRibbonGallery::CMFCRibbonGallery

Constructs and initializes a CMFCRibbonGallery object.

CMFCRibbonGallery (
    UINT nID,
    LPCTSTR lpszText,
    int nSmallImageIndex,
    int nLargeImageIndex,
    CMFCToolBarImages& imagesPalette 
);
CMFCRibbonGallery (
    UINT nID,
    LPCTSTR lpszText,
    int nSmallImageIndex,
    int nLargeImageIndex,
    UINT uiImagesPaletteResID=0,
    int cxPaletteImage=0 
);
CMFCRibbonGallery (
    UINT nID,
    LPCTSTR lpszText,
    int nSmallImageIndex,
    int nLargeImageIndex,
    CSize sizeIcon,
    int nIconsNum,
    BOOL bDefaultButtonStyle=TRUE 
);

Parameters

  • nID
    Specifies the command ID of the command to execute when a user clicks the button.

  • lpszText
    Specifies the text to appear on the button.

  • nSmallImageIndex
    The zero-based index of the small image to appear on the button.

  • nLargeImageIndex
    The zero-based index of the large image to appear on the button.

  • imagesPalette
    A reference to the CMFCToolBarImages object that contains the images to appear on the gallery.

  • uiImagesPaletteResID
    The resource ID of the list of images to display on the gallery.

  • cxPaletteImage
    Specifies the width, in pixels, of the image on the gallery.

  • sizeIcon
    Specifies the size, in pixels, of the gallery image.

  • nIconsNum
    Specifies the number of icons in the gallery.

  • bDefaultButtonStyle
    Specifies whether to use the default or the owner-drawn button style.

Requirements

Header: afxRibbonPaletteGallery.h

See Also

Reference

CMFCRibbonGallery Class

Hierarchy Chart