home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CPalette

CObject
   |
   +--CGdiObject
         |
         +--CPalette

   in AFXWIN.H

class CPalette
extends CGdiObject


 
Fields inherited from class CGdiObject
m_hObject
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CPalette()
          
virtual ~CPalette()
          
 
Method Summary
 void AnimatePalette( UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors )
          
 BOOL CreateHalftonePalette( CDC* pDC )
          
 BOOL CreatePalette( LPLOGPALETTE lpLogPalette )
          
 static CPalette* PASCAL FromHandle( HPALETTE hPalette )
          
 int GetEntryCount()
          
 UINT GetNearestPaletteIndex( COLORREF crColor ) const
          
 UINT GetPaletteEntries( UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors ) const
          
 operator HPALETTE() const
          
 BOOL ResizePalette( UINT nNumEntries )
          
 UINT SetPaletteEntries( UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors )
          
   
Methods inherited from class CGdiObject
HGDIOBJ, GetSafeHandle, FromHandle, DeleteTempMap, Attach, Detach, DeleteObject, GetObject, GetObjectType, CreateStockObject, UnrealizeObject, operator==, operator!=
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Constructor Detail

CPalette

public CPalette();

~CPalette

public virtual ~CPalette();


Method Detail

AnimatePalette

public void AnimatePalette( UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors );

CreateHalftonePalette

public BOOL CreateHalftonePalette( CDC* pDC );

CreatePalette

public BOOL CreatePalette( LPLOGPALETTE lpLogPalette );

FromHandle

public static CPalette* PASCAL FromHandle( HPALETTE hPalette );

GetEntryCount

public int GetEntryCount();

GetNearestPaletteIndex

public UINT GetNearestPaletteIndex( COLORREF crColor ) const;

GetPaletteEntries

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

HPALETTE

public operator HPALETTE() const;

ResizePalette

public BOOL ResizePalette( UINT nNumEntries );

SetPaletteEntries

public UINT SetPaletteEntries( UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD