CGridCell Class Reference

#include <GridCell.h>

Inheritance diagram for CGridCell:

CGridCellBase CGridCellCombo CGridDefaultCell List of all members.

Public Member Functions

 CGridCell ()
virtual ~CGridCell ()
void operator= (const CGridCell &cell)
virtual void SetText (LPCTSTR szText)
virtual void SetImage (int nImage)
virtual void SetData (LPARAM lParam)
virtual void SetGrid (CGridCtrl *pGrid)
virtual void SetFormat (DWORD nFormat)
virtual void SetTextClr (COLORREF clr)
virtual void SetBackClr (COLORREF clr)
virtual void SetFont (const LOGFONT *plf)
virtual void SetMargin (UINT nMargin)
virtual void SetCoords (int, int)
virtual LPCTSTR GetText () const
virtual int GetImage () const
virtual LPARAM GetData () const
virtual CGridCtrlGetGrid () const
virtual DWORD GetFormat () const
virtual COLORREF GetTextClr () const
virtual COLORREF GetBackClr () const
virtual LOGFONT * GetFont () const
virtual CFont * GetFontObject () const
virtual UINT GetMargin () const
virtual BOOL IsEditing () const
virtual BOOL IsDefaultFont () const
virtual void Reset ()
virtual BOOL Edit (int nRow, int nCol, CRect rect, CPoint point, UINT nID, UINT nChar)
virtual void EndEdit ()

Protected Member Functions

virtual void OnEndEdit ()

Protected Attributes

CString m_strText
LPARAM m_lParam
int m_nImage
DWORD m_nFormat
COLORREF m_crFgClr
COLORREF m_crBkClr
LOGFONT * m_plfFont
UINT m_nMargin
BOOL m_bEditing
CGridCtrlm_pGrid
CWnd * m_pEditWnd

Private Member Functions

 DECLARE_DYNCREATE (CGridCell)

Friends

class CGridCtrl

Detailed Description

Definition at line 39 of file GridCell.h.


Constructor & Destructor Documentation

CGridCell::CGridCell (  ) 

Definition at line 44 of file GridCell.cpp.

CGridCell::~CGridCell (  )  [virtual]

Definition at line 50 of file GridCell.cpp.

References m_plfFont.


Member Function Documentation

CGridCell::DECLARE_DYNCREATE ( CGridCell   )  [private]

BOOL CGridCell::Edit ( int  nRow,
int  nCol,
CRect  rect,
CPoint  point,
UINT  nID,
UINT  nChar 
) [virtual]

Reimplemented from CGridCellBase.

Reimplemented in CGridCellCombo.

Definition at line 163 of file GridCell.cpp.

References GetFormat(), GetGrid(), GetText(), m_bEditing, m_pEditWnd, and TRUE.

void CGridCell::EndEdit (  )  [virtual]

Reimplemented from CGridCellBase.

Reimplemented in CGridCellCombo.

Definition at line 180 of file GridCell.cpp.

References m_pEditWnd.

virtual COLORREF CGridCell::GetBackClr (  )  const [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 74 of file GridCell.h.

References m_crBkClr.

Referenced by CGridCellBase::Draw(), CGridCellCombo::Edit(), CGridCtrl::GetFixedBkColor(), CGridCtrl::GetFixedTextColor(), and CGridCtrl::GetTextBkColor().

virtual LPARAM CGridCell::GetData (  )  const [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 69 of file GridCell.h.

References m_lParam.

LOGFONT * CGridCell::GetFont (  )  const [virtual]

Reimplemented from CGridCellBase.

Reimplemented in CGridDefaultCell.

Definition at line 98 of file GridCell.cpp.

References CGridCellBase::GetDefaultCell(), CGridDefaultCell::GetFont(), and m_plfFont.

CFont * CGridCell::GetFontObject (  )  const [virtual]

Reimplemented from CGridCellBase.

Reimplemented in CGridDefaultCell.

Definition at line 112 of file GridCell.cpp.

References CGridCellBase::GetDefaultCell(), CGridDefaultCell::GetFontObject(), and m_plfFont.

DWORD CGridCell::GetFormat (  )  const [virtual]

Reimplemented from CGridCellBase.

Definition at line 132 of file GridCell.cpp.

References CGridCellBase::GetDefaultCell(), GetFormat(), and m_nFormat.

Referenced by Edit(), and GetFormat().

virtual CGridCtrl* CGridCell::GetGrid (  )  const [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 70 of file GridCell.h.

References m_pGrid.

Referenced by CGridCellCombo::Draw(), CGridCellCombo::Edit(), and Edit().

virtual int CGridCell::GetImage (  )  const [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 68 of file GridCell.h.

References m_nImage.

UINT CGridCell::GetMargin (  )  const [virtual]

Reimplemented from CGridCellBase.

Definition at line 146 of file GridCell.cpp.

References CGridCellBase::GetDefaultCell(), GetMargin(), and m_nMargin.

Referenced by CGridCtrl::GetDefCellMargin(), and GetMargin().

virtual LPCTSTR CGridCell::GetText (  )  const [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 67 of file GridCell.h.

References m_strText.

Referenced by CGridCellCombo::Draw(), CGridCellCombo::Edit(), and Edit().

virtual COLORREF CGridCell::GetTextClr (  )  const [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 73 of file GridCell.h.

References m_crFgClr.

Referenced by CGridCellBase::Draw(), CGridCellCombo::Edit(), and CGridCtrl::GetTextColor().

virtual BOOL CGridCell::IsDefaultFont (  )  const [inline, virtual]

Definition at line 80 of file GridCell.h.

References m_plfFont.

virtual BOOL CGridCell::IsEditing (  )  const [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 79 of file GridCell.h.

References m_bEditing.

Referenced by CGridCellCombo::Draw().

void CGridCell::OnEndEdit (  )  [protected, virtual]

Reimplemented from CGridCellBase.

Definition at line 186 of file GridCell.cpp.

References FALSE, m_bEditing, and m_pEditWnd.

void CGridCell::operator= ( const CGridCell cell  ) 

Definition at line 58 of file GridCell.cpp.

References CGridCellBase::operator=().

void CGridCell::Reset (  )  [virtual]

Reimplemented from CGridCellBase.

Definition at line 63 of file GridCell.cpp.

References FALSE, m_bEditing, m_crBkClr, m_crFgClr, m_nFormat, m_nImage, m_nMargin, m_pEditWnd, m_pGrid, m_plfFont, m_strText, and CGridCellBase::Reset().

virtual void CGridCell::SetBackClr ( COLORREF  clr  )  [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 60 of file GridCell.h.

References m_crBkClr.

Referenced by CGridCtrl::GetCell(), CGridCtrl::SetFixedBkColor(), CGridCtrl::SetTextBkColor(), and CGridCtrl::SetupDefaultCells().

virtual void CGridCell::SetCoords ( int  ,
int   
) [inline, virtual]

Reimplemented from CGridCellBase.

Reimplemented in CGridDefaultCell.

Definition at line 64 of file GridCell.h.

virtual void CGridCell::SetData ( LPARAM  lParam  )  [inline, virtual]

Reimplemented from CGridCellBase.

Reimplemented in CGridDefaultCell.

Definition at line 55 of file GridCell.h.

References m_lParam.

Referenced by CGridCtrl::GetCell().

void CGridCell::SetFont ( const LOGFONT *  plf  )  [virtual]

Reimplemented from CGridCellBase.

Reimplemented in CGridDefaultCell.

Definition at line 82 of file GridCell.cpp.

References m_plfFont.

Referenced by CGridCtrl::GetCell(), and CGridDefaultCell::SetFont().

virtual void CGridCell::SetFormat ( DWORD  nFormat  )  [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 58 of file GridCell.h.

References m_nFormat.

Referenced by CGridCtrl::GetCell().

virtual void CGridCell::SetGrid ( CGridCtrl pGrid  )  [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 56 of file GridCell.h.

References m_pGrid.

Referenced by CGridCtrl::GetCell(), and CGridCtrl::SetupDefaultCells().

virtual void CGridCell::SetImage ( int  nImage  )  [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 54 of file GridCell.h.

References m_nImage.

Referenced by CGridCtrl::GetCell().

virtual void CGridCell::SetMargin ( UINT  nMargin  )  [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 62 of file GridCell.h.

References m_nMargin.

Referenced by CGridCtrl::GetCell(), CGridCtrl::SetDefCellMargin(), and CGridDefaultCell::SetFont().

virtual void CGridCell::SetText ( LPCTSTR  szText  )  [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 53 of file GridCell.h.

References m_strText.

Referenced by CGridCellCombo::Draw(), CGridCtrl::GetCell(), and CSettingsDlgBar::OnNotify().

virtual void CGridCell::SetTextClr ( COLORREF  clr  )  [inline, virtual]

Reimplemented from CGridCellBase.

Definition at line 59 of file GridCell.h.

References m_crFgClr.

Referenced by CGridCtrl::GetCell(), CSettingsDlgBar::OnNotify(), CGridCtrl::SetFixedTextColor(), CGridCtrl::SetTextColor(), and CGridCtrl::SetupDefaultCells().


Friends And Related Function Documentation

friend class CGridCtrl [friend]

Reimplemented from CGridCellBase.

Reimplemented in CGridCellCombo.

Definition at line 41 of file GridCell.h.


Member Data Documentation

BOOL CGridCell::m_bEditing [protected]

Definition at line 100 of file GridCell.h.

Referenced by CGridCellCombo::Edit(), Edit(), IsEditing(), OnEndEdit(), and Reset().

COLORREF CGridCell::m_crBkClr [protected]

Definition at line 96 of file GridCell.h.

Referenced by CGridDefaultCell::CGridDefaultCell(), GetBackClr(), Reset(), and SetBackClr().

COLORREF CGridCell::m_crFgClr [protected]

Definition at line 95 of file GridCell.h.

Referenced by CGridDefaultCell::CGridDefaultCell(), GetTextClr(), Reset(), and SetTextClr().

LPARAM CGridCell::m_lParam [protected]

Definition at line 92 of file GridCell.h.

Referenced by GetData(), and SetData().

DWORD CGridCell::m_nFormat [protected]

Definition at line 94 of file GridCell.h.

Referenced by CGridDefaultCell::CGridDefaultCell(), GetFormat(), Reset(), and SetFormat().

int CGridCell::m_nImage [protected]

Definition at line 93 of file GridCell.h.

Referenced by GetImage(), Reset(), and SetImage().

UINT CGridCell::m_nMargin [protected]

Definition at line 98 of file GridCell.h.

Referenced by GetMargin(), Reset(), and SetMargin().

CWnd* CGridCell::m_pEditWnd [protected]

Definition at line 103 of file GridCell.h.

Referenced by CGridCellCombo::Edit(), Edit(), CGridCellCombo::EndEdit(), EndEdit(), OnEndEdit(), and Reset().

CGridCtrl* CGridCell::m_pGrid [protected]

Definition at line 102 of file GridCell.h.

Referenced by GetGrid(), Reset(), and SetGrid().

LOGFONT* CGridCell::m_plfFont [protected]

Definition at line 97 of file GridCell.h.

Referenced by CGridDefaultCell::GetFont(), GetFont(), GetFontObject(), IsDefaultFont(), Reset(), SetFont(), and ~CGridCell().

CString CGridCell::m_strText [protected]

Definition at line 91 of file GridCell.h.

Referenced by GetText(), Reset(), and SetText().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:20:35 2006 for DT2005.panorama by  doxygen 1.4.7