Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*************************************************
* dibpal.h * * * * Copyright (C) 1995-1999 Microsoft Inc. * * * *************************************************/
// dibpal.h : header file
//
// CDIBPal class
//
#ifndef __DIBPAL__
#define __DIBPAL__
#include "dib.h"
class CDIBPal : public CPalette { public: CDIBPal(); ~CDIBPal(); BOOL Create(CDIB *pDIB); // create from a DIB
void Draw(CDC *pDC, CRect *pRect, BOOL bBkgnd = FALSE); int GetNumColors(); // get the no. of colors in the pal.
BOOL SetSysPalColors(); BOOL Load(char *pszFileName = NULL); BOOL Load(CFile *fp); BOOL Load(UINT_PTR hFile); BOOL Load(HMMIO hmmio); BOOL Save(CFile *fp); BOOL Save(UINT_PTR hFile); BOOL Save(HMMIO hmmio); };
#endif // __DIBPAL__
|