MFC Grid manual

CAppearance Class Reference

The object of this class stores color preferences of the grid and permits to serialize/deserialize them to/from the archive. More...

#include <Dapfor/GUI/Appearance.h>

List of all members.


Serialization

void Serialize (CArchive &ar)
 Serializes/Deserializes data to/from the archive.
static int GetSerializeVertion ()
 Gets current serialization version.

Public Member Functions

 CAppearance ()
 Constructor.
 CAppearance (const CAppearance &appearance)
 Copy constructor.
bool IsVerticalLinesEnabled () const
 Indicates whether the grid can draw vertical lines between columns.
bool IsHorizontalLinesEnabled () const
 Indicates whether the grid can draw horizontal lines between rows.
void EnableVerticalLines (bool bEnable)
 Enables to draw vertical lines between columns.
void EnableHorizontalLines (bool bEnable)
 Enables to draw horizontal lines between rows.
Get methods
COLORREF GetTextEvenColor () const
 Gets even text color.
COLORREF GetTextOddColor () const
 Gets odd text color.
COLORREF GetBackEvenColor () const
 Gets even background color.
COLORREF GetBackOddColor () const
 Gets odd background color.
COLORREF GetVerticalLinesColor () const
 Gets color of vertical lines.
COLORREF GetHorizontalLinesColor () const
 Gets color of horizontal lines.
const CColorBlend GetSelectedLineColor () const
 Gets selected line color which is blended with background color.
const CColorBlend GetFocusedLineColor () const
 Gets focused line color which is blended with background color.
const CColorBlend GetSortedColumnColor () const
 Gets sorted column color which is blended with background color.
const CColorBlend GetMouseSelectionColor () const
 Gets color of the rectangle selected by the mouse which is blended with background color.
Set methods
void SetTextEvenColor (COLORREF color)
 Sets even text color.
void SetTextOddColor (COLORREF color)
 Sets odd text color.
void SetBackEvenColor (COLORREF color)
 Sets even background color.
void SetBackOddColor (COLORREF color)
 Sets odd background color.
void SetVerticalLinesColor (COLORREF color)
 Sets color of vertical lines.
void SetHorizontalLinesColor (COLORREF color)
 Sets color of horizontal lines.
void SetSelectedLineColor (CColorBlend color)
 Sets a new color for the selected line which is blended with background color.
void SetFocusedLineColor (CColorBlend color)
 Sets a new color for the focused line which is blended with background color.
void SetSortedColumnColor (CColorBlend color)
 Sets a new color for the sorted column which is blended with background color.
void SetMouseSelectionColor (CColorBlend color)
 Sets a new color of the rectangle selected by the mouse which is blended with background color.

Detailed Description

The object of this class stores color preferences of the grid and permits to serialize/deserialize them to/from the archive.

Member Function Documentation

COLORREF GetTextEvenColor (  )  const [inline]

Gets even text color.

Returns:
Even text color

COLORREF GetTextOddColor (  )  const [inline]

Gets odd text color.

Returns:
Odd text color

COLORREF GetBackEvenColor (  )  const [inline]

Gets even background color.

Returns:
Even bachground color

COLORREF GetBackOddColor (  )  const [inline]

Gets odd background color.

Returns:
Odd background color

COLORREF GetVerticalLinesColor (  )  const [inline]

Gets color of vertical lines.

Returns:
Color of vertical lines

COLORREF GetHorizontalLinesColor (  )  const [inline]

Gets color of horizontal lines.

Returns:
Color of horizontal lines

const CColorBlend GetSelectedLineColor (  )  const [inline]

Gets selected line color which is blended with background color.

Returns:
Color and alpha coefficient to blend with background color

const CColorBlend GetFocusedLineColor (  )  const [inline]

Gets focused line color which is blended with background color.

Returns:
Color and alpha coefficient to blend with background color

const CColorBlend GetSortedColumnColor (  )  const [inline]

Gets sorted column color which is blended with background color.

Returns:
Color and alpha coefficient to blend with background color

const CColorBlend GetMouseSelectionColor (  )  const [inline]

Gets color of the rectangle selected by the mouse which is blended with background color.

Returns:
Color and alpha coefficient to blend with background color

void SetTextEvenColor ( COLORREF  color  )  [inline]

Sets even text color.

Parameters:
[in] color A new color

void SetTextOddColor ( COLORREF  color  )  [inline]

Sets odd text color.

Parameters:
[in] color A new color

void SetBackEvenColor ( COLORREF  color  )  [inline]

Sets even background color.

Parameters:
[in] color A new color

void SetBackOddColor ( COLORREF  color  )  [inline]

Sets odd background color.

Parameters:
[in] color A new color

void SetVerticalLinesColor ( COLORREF  color  )  [inline]

Sets color of vertical lines.

Parameters:
[in] color A new color

void SetHorizontalLinesColor ( COLORREF  color  )  [inline]

Sets color of horizontal lines.

Parameters:
[in] color A new color

void SetSelectedLineColor ( CColorBlend  color  )  [inline]

Sets a new color for the selected line which is blended with background color.

Parameters:
[in] color A new color and an alpha coefficient to blend selection with background color

void SetFocusedLineColor ( CColorBlend  color  )  [inline]

Sets a new color for the focused line which is blended with background color.

Parameters:
[in] color A new color and an alpha coefficient to blend the focused line with background color

void SetSortedColumnColor ( CColorBlend  color  )  [inline]

Sets a new color for the sorted column which is blended with background color.

Parameters:
[in] color A new color and an alpha coefficient to blend the sorted column with background color

void SetMouseSelectionColor ( CColorBlend  color  )  [inline]

Sets a new color of the rectangle selected by the mouse which is blended with background color.

Parameters:
[in] color A new color and an alpha coefficient to blend the rectangle, selected by the mouse with background color

int GetSerializeVertion (  )  [static]

Gets current serialization version.

Returns:
Current serialization version

void Serialize ( CArchive &  ar  ) 

Serializes/Deserializes data to/from the archive.

Parameters:
[in] ar Archive to serialize/deserialize this object.