Udostępnij za pośrednictwem


CPalette::GetPaletteEntries

Retrieves a range of palette entries in a logical palette.

UINT GetPaletteEntries( 
   UINT nStartIndex, 
   UINT nNumEntries, 
   LPPALETTEENTRY lpPaletteColors  
) const;

Parameters

  • nStartIndex
    Specifies the first entry in the logical palette to be retrieved.

  • nNumEntries
    Specifies the number of entries in the logical palette to be retrieved.

  • lpPaletteColors
    Points to an array of PALETTEENTRY data structures to receive the palette entries. The array must contain at least as many data structures as specified by nNumEntries.

Return Value

The number of entries retrieved from the logical palette; 0 if the function failed.

Requirements

Header: afxwin.h

See Also

Reference

CPalette Class

Hierarchy Chart

GetPaletteEntries

CPalette::SetPaletteEntries

Other Resources

CPalette Members