MFC Grid manual

CColumnPaintInfo Class Reference

Information for drawing a column. More...

#include <Dapfor/GUI/ColumnPaintInfo.h>

List of all members.


Public Types

enum  State { Normal, Hot, Pressed }
 State of a column. More...

Public Member Functions

 CColumnPaintInfo (CHeaderPaintInfo &headerPaintInfo, const CColumn *column, CRect visibleRect, CRect virtualRect, State state, CFont *font, int imageIndex, COLORREF textColor)
 Constructor.
const CHeaderPaintInfoGetHeaderPaintInfo () const
 Gets header-related information.
const CColumnGetColumn () const
 Gets the column that the information is associated with.
State GetState () const
 Gets a column state.
const CRect & GetVisibleRect () const
 Gets visible column bounds.
const CRect & GetVirtualRect () const
 Gets virtual column bounds.
CFont * GetFont () const
 Gets the font that is used to draw a text in a column.
COLORREF GetTextColor () const
 Gets text color.

Detailed Description

Information for drawing a column.

Member Enumeration Documentation

enum State

State of a column.

Enumerator:
Normal  Normal state.
Hot  Mouse is over the column.
Pressed  Left mouse button is pressed on the column.


Constructor & Destructor Documentation

CColumnPaintInfo ( CHeaderPaintInfo headerPaintInfo,
const CColumn column,
CRect  visibleRect,
CRect  virtualRect,
State  state,
CFont *  font,
int  imageIndex,
COLORREF  textColor 
)

Constructor.

Parameters:
[in] headerPaintInfo Header related paint information
[in] column Pointer to the column, the information is associated with
[in] visibleRect Column visible bounds
[in] virtualRect Column virtual bounds
[in] state Column state
[in] font Font to draw a text in a column
[in] imageIndex Image index to draw an icon in the column header
[in] textColor Text color


Member Function Documentation

const CHeaderPaintInfo & GetHeaderPaintInfo (  )  const [inline]

Gets header-related information.

Returns:
Header related paint information

const CColumn * GetColumn (  )  const [inline]

Gets the column that the information is associated with.

Returns:
Pointer to a column

CColumnPaintInfo::State GetState (  )  const [inline]

Gets a column state.

Returns:
State of a column

const CRect & GetVisibleRect (  )  const [inline]

Gets visible column bounds.

Returns:
Visible bounds

const CRect & GetVirtualRect (  )  const [inline]

Gets virtual column bounds.

Returns:
Virtual bounds

CFont * GetFont (  )  const [inline]

Gets the font that is used to draw a text in a column.

Returns:
Font to text drawing

COLORREF GetTextColor (  )  const [inline]

Gets text color.

Returns:
Color of a text