// ColorPalette.h : header file #define COLOR_PALETTE_SUPPORT_COLOR_NUM 256 #define COLOR_PALETTE_BIT_PER_PIXEL 8 #define DEFAULT_BACKGROUND_COLOR 0xfff0f0 #define DEFAULT_SETTING_COLOR 0 struct ColorMapping{ static COLORREF m_result[COLOR_PALETTE_SUPPORT_COLOR_NUM]; }; class ColorPalette{ public: ColorPalette(int color=DEFAULT_SETTING_COLOR); COLORREF GetColorRef(); private: int m_color; };
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.