Leaked source code of windows server 2003
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.

49 lines
1.1 KiB

  1. // colorsrc.h : main header file for the PBRUSH application
  2. //
  3. #ifndef __COLORSRC_H__
  4. #define __COLORSRC_H__
  5. /******************************************************************************/
  6. class CColors : public CObject
  7. {
  8. DECLARE_DYNCREATE( CColors )
  9. public:
  10. CColors();
  11. ~CColors();
  12. enum { MAXCOLORS = 256 };
  13. private:
  14. COLORREF* m_colors;
  15. COLORREF* m_monoColors;
  16. int m_nColorCount;
  17. BOOL m_bMono;
  18. public:
  19. void SetMono ( BOOL bMono = TRUE );
  20. COLORREF GetColor( int nColor );
  21. void SetColor( int nColor, COLORREF color );
  22. int GetColorCount() const { return m_nColorCount; }
  23. BOOL GetMonoFlag () const { return m_bMono; }
  24. void EditColor( BOOL bLeft, BOOL bTrans );
  25. void ResetColors(int nColors=256);
  26. void CmdEditColor();
  27. #if 0 // unused features
  28. void CmdLoadColors();
  29. void CmdSaveColors();
  30. #endif
  31. };
  32. /******************************************************************************/
  33. extern CColors* g_pColors;
  34. #endif