Public Types | |
enum | Mode { InverseColor, ForeColor, BackColor, ForeBackColor, AlphaBlendForeColor, AlphaBlendBackColor, AlphaBlendForeBackColor, FadingForeColor, FadingBackColor, FadingForeBackColor } |
Public Member Functions | |
CHighlightSettings () | |
Default constructor. | |
CHighlightSettings (const CHighlightSettings &settings) | |
Copy constructor. | |
CHighlightSettings (int highlightPeriod, COLORREF foreColor, COLORREF backColor, BYTE foreAlpha, BYTE backAlpha, int fadingSpan, Mode mode) | |
Constructor. | |
int | GetHighlightPeriod () const |
Time interval in milliseconds during which a cell is highlighted. | |
COLORREF | GetForeColor () const |
Gets the foreground color. | |
COLORREF | GetBackColor () const |
Gets the background color. | |
BYTE | GetForeAlpha () const |
Alpha-blend coefficient for the foreground color. | |
BYTE | GetBackAlpha () const |
Alpha-blend coefficient for the background color. | |
int | GetFadingSpan () const |
Time interval between two color modifications to implement a fading effect. Has sense only for Fading mode. | |
Mode | GetMode () const |
Gets a highlight mode. | |
void | SetHighlightPeriod (int period) |
Sets a new highlight period. | |
void | SetForeColor (COLORREF color) |
Sets a new foreground color. | |
void | SetBackColor (COLORREF color) |
Sets a new background color. | |
void | SetForeAlpha (BYTE alpha) |
Sets a new foreground alpha coefficient. | |
void | SetBackAlpha (BYTE alpha) |
Sets a new background alpha coefficient. | |
void | SetFadingSpan (int span) |
Sets a new time interval between two color modifications. Makes sense only for Fading mode. | |
void | SetMode (Mode mode) |
Sets a new highlight mode. | |
void | Serialize (CArchive &ar) |
Serializes/deserializes this object to/from the archive. | |
Static Public Member Functions | |
static int | GetSerializeVertion () |
Gets serialization version. |
//Turn on cell highlighting m_Grid.AllowHighlight(true); //Select highlighting with fading effect m_Grid.GetHighlightSettings().SetMode(Dapfor::GUI::FadingBackColor); m_Grid.GetHighlightSettings().SetBackColor(RGB(230, 10, 14));
enum Mode |
Highlight modes
CHighlightSettings | ( | const CHighlightSettings & | settings | ) |
Copy constructor.
[in] | settings | to be copied |
CHighlightSettings | ( | int | highlightPeriod, | |
COLORREF | foreColor, | |||
COLORREF | backColor, | |||
BYTE | foreAlpha, | |||
BYTE | backAlpha, | |||
int | fadingSpan, | |||
Mode | mode | |||
) |
Constructor.
[in] | highlightPeriod | Time interval in milliseconds during which a cell is highlighted. |
[in] | foreColor | Foreground color |
[in] | backColor | Background color |
[in] | foreAlpha | Foreground alpha coefficient |
[in] | backAlpha | Background alpha coefficient |
[in] | fadingSpan | Time interval between two color modifications. Makes sense only for Fading mode. |
[in] | mode | Highlight mode |
int GetHighlightPeriod | ( | ) | const [inline] |
Time interval in milliseconds during which a cell is highlighted.
COLORREF GetForeColor | ( | ) | const [inline] |
Gets the foreground color.
COLORREF GetBackColor | ( | ) | const [inline] |
Gets the background color.
BYTE GetForeAlpha | ( | ) | const [inline] |
Alpha-blend coefficient for the foreground color.
BYTE GetBackAlpha | ( | ) | const [inline] |
Alpha-blend coefficient for the background color.
int GetFadingSpan | ( | ) | const [inline] |
Time interval between two color modifications to implement a fading effect. Has sense only for Fading mode.
CHighlightSettings::Mode GetMode | ( | ) | const [inline] |
Gets a highlight mode.
void SetHighlightPeriod | ( | int | period | ) | [inline] |
Sets a new highlight period.
[in] | period | Time period in milliseconds. |
void SetForeColor | ( | COLORREF | color | ) | [inline] |
Sets a new foreground color.
[in] | color | A new foreground color |
void SetBackColor | ( | COLORREF | color | ) | [inline] |
Sets a new background color.
[in] | color | A new background color |
void SetForeAlpha | ( | BYTE | alpha | ) | [inline] |
Sets a new foreground alpha coefficient.
[in] | alpha | A new foreground alpha coefficient |
void SetBackAlpha | ( | BYTE | alpha | ) | [inline] |
Sets a new background alpha coefficient.
[in] | alpha | A new background alpha coefficient |
void SetFadingSpan | ( | int | span | ) | [inline] |
Sets a new time interval between two color modifications. Makes sense only for Fading mode.
[in] | span | A new time interval in milliseconds between two color modifications. |
void SetMode | ( | Mode | mode | ) | [inline] |
Sets a new highlight mode.
[in] | mode | A new highlight mode |
int GetSerializeVertion | ( | ) | [static] |
Gets serialization version.
void Serialize | ( | CArchive & | ar | ) |
Serializes/deserializes this object to/from the archive.
[in] | ar | Acrhive to serialize or deserialize the object |
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |