#ifndef __CPalette_cpp
#define __CPalette_cpp

MfcPalette* MfcPalette::New ()
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_New();
} // MfcPalette* MfcPalette::New ();

void MfcPalette::Delete (MfcPalette* pPalette)
{
	FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_Delete(pPalette);
} // void MfcPalette::Delete (MfcPalette* pPalette);

MfcPalette* MfcPalette::FromHandle (HPALETTE hPalette)
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_FromHandle(hPalette);
} // MfcPalette* MfcPalette::FromHandle (HPALETTE hPalette);

BOOL MfcPalette::CreatePalette (LPLOGPALETTE lpLogPalette)
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_CreatePalette(this, lpLogPalette);
} // BOOL MfcPalette::CreatePalette (LPLOGPALETTE lpLogPalette);

BOOL MfcPalette::CreateHalftonePalette (MfcDC* pDC)
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_CreateHalftonePalette(this, pDC);
} // BOOL MfcPalette::CreateHalftonePalette (MfcDC* pDC);

MfcPalette::operator HPALETTE () const
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_HPALETTE(this);
} // MfcPalette::operator HPALETTE () const;

int MfcPalette::GetEntryCount ()
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_GetEntryCount(this);
} // int MfcPalette::GetEntryCount ();

UINT MfcPalette::GetPaletteEntries (UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors) const
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_GetPaletteEntries(this, nStartIndex, nNumEntries, lpPaletteColors);
} // UINT MfcPalette::GetPaletteEntries (UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors) const;

UINT MfcPalette::SetPaletteEntries (UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors)
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_SetPaletteEntries(this, nStartIndex, nNumEntries, lpPaletteColors);
} // UINT MfcPalette::SetPaletteEntries (UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors);

void MfcPalette::AnimatePalette (UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors)
{
	FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_AnimatePalette(this, nStartIndex, nNumEntries, lpPaletteColors);
} // void MfcPalette::AnimatePalette (UINT nStartIndex, UINT nNumEntries, LPPALETTEENTRY lpPaletteColors);

UINT MfcPalette::GetNearestPaletteIndex (COLORREF crColor) const
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_GetNearestPaletteIndex(this, crColor);
} // UINT MfcPalette::GetNearestPaletteIndex (COLORREF crColor) const;

BOOL MfcPalette::ResizePalette (UINT nNumEntries)
{
	return FMpgGetModule()->GetMolipBaseI()->GetMfcClassI()->MfcPaletteI()->_ResizePalette(this, nNumEntries);
} // BOOL MfcPalette::ResizePalette (UINT nNumEntries);

#endif//__CPalette_cpp
