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.

38 lines
962 B

  1. /*************************************************
  2. * dibpal.h *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. // dibpal.h : header file
  8. //
  9. // CDIBPal class
  10. //
  11. #ifndef __DIBPAL__
  12. #define __DIBPAL__
  13. #include "dib.h"
  14. class CDIBPal : public CPalette
  15. {
  16. public:
  17. CDIBPal();
  18. ~CDIBPal();
  19. BOOL Create(CDIB *pDIB); // create from a DIB
  20. void Draw(CDC *pDC, CRect *pRect, BOOL bBkgnd = FALSE);
  21. int GetNumColors(); // get the no. of colors in the pal.
  22. BOOL SetSysPalColors();
  23. BOOL Load(char *pszFileName = NULL);
  24. BOOL Load(CFile *fp);
  25. BOOL Load(UINT_PTR hFile);
  26. BOOL Load(HMMIO hmmio);
  27. BOOL Save(CFile *fp);
  28. BOOL Save(UINT_PTR hFile);
  29. BOOL Save(HMMIO hmmio);
  30. };
  31. #endif // __DIBPAL__