#include <GridCellBase.h>
Inheritance diagram for CGridCellBase:
Public Member Functions | |
CGridCellBase () | |
virtual | ~CGridCellBase () |
virtual void | SetText (LPCTSTR) |
virtual void | SetImage (int) |
virtual void | SetData (LPARAM) |
virtual void | SetState (DWORD nState) |
virtual void | SetFormat (DWORD) |
virtual void | SetTextClr (COLORREF) |
virtual void | SetBackClr (COLORREF) |
virtual void | SetFont (const LOGFONT *) |
virtual void | SetMargin (UINT) |
virtual void | SetGrid (CGridCtrl *) |
virtual void | SetCoords (int, int) |
virtual LPCTSTR | GetText () const |
virtual LPCTSTR | GetTipText () const |
virtual int | GetImage () const |
virtual LPARAM | GetData () const |
virtual DWORD | GetState () const |
virtual DWORD | GetFormat () const |
virtual COLORREF | GetTextClr () const |
virtual COLORREF | GetBackClr () const |
virtual LOGFONT * | GetFont () const |
virtual CFont * | GetFontObject () const |
virtual CGridCtrl * | GetGrid () const |
virtual UINT | GetMargin () const |
virtual CGridCellBase * | GetDefaultCell () const |
virtual BOOL | IsEditing () const |
virtual BOOL | IsFocused () const |
virtual BOOL | IsFixed () const |
virtual BOOL | IsFixedCol () const |
virtual BOOL | IsFixedRow () const |
virtual BOOL | IsSelected () const |
virtual BOOL | IsReadOnly () const |
virtual BOOL | IsModified () const |
virtual BOOL | IsDropHighlighted () const |
virtual void | operator= (const CGridCellBase &cell) |
virtual void | Reset () |
virtual BOOL | Draw (CDC *pDC, int nRow, int nCol, CRect rect, BOOL bEraseBkgnd=TRUE) |
virtual BOOL | GetTextRect (LPRECT pRect) |
virtual BOOL | GetTipTextRect (LPRECT pRect) |
virtual CSize | GetTextExtent (LPCTSTR str, CDC *pDC=NULL) |
virtual CSize | GetCellExtent (CDC *pDC) |
virtual BOOL | Edit (int, int, CRect, CPoint, UINT, UINT) |
virtual void | EndEdit () |
virtual BOOL | PrintCell (CDC *pDC, int nRow, int nCol, CRect rect) |
LRESULT | SendMessageToParent (int nRow, int nCol, int nMessage) |
Protected Member Functions | |
virtual void | OnEndEdit () |
virtual void | OnMouseEnter () |
virtual void | OnMouseOver () |
virtual void | OnMouseLeave () |
virtual void | OnClick (CPoint PointCellRelative) |
virtual void | OnClickDown (CPoint PointCellRelative) |
virtual void | OnRClick (CPoint PointCellRelative) |
virtual void | OnDblClick (CPoint PointCellRelative) |
virtual BOOL | OnSetCursor () |
Protected Attributes | |
DWORD | m_nState |
Private Member Functions | |
DECLARE_DYNCREATE (CGridCellBase) | |
Friends | |
class | CGridCtrl |
Definition at line 77 of file GridCellBase.h.
CGridCellBase::CGridCellBase | ( | ) |
Definition at line 51 of file GridCellBase.cpp.
CGridCellBase::~CGridCellBase | ( | ) | [virtual] |
Definition at line 56 of file GridCellBase.cpp.
CGridCellBase::DECLARE_DYNCREATE | ( | CGridCellBase | ) | [private] |
BOOL CGridCellBase::Draw | ( | CDC * | pDC, | |
int | nRow, | |||
int | nCol, | |||
CRect | rect, | |||
BOOL | bEraseBkgnd = TRUE | |||
) | [virtual] |
Reimplemented in CGridCellCombo.
Definition at line 102 of file GridCellBase.cpp.
References ASSERT, BOOL(), e, FALSE, CGridCell::GetBackClr(), GetBackClr(), GetDefaultCell(), CGridCtrl::GetFocusCell(), GetFont(), GetFontObject(), GetFormat(), CGridCtrl::GetFrameFocusCell(), GetGrid(), CGridCtrl::GetGridLines(), GetImage(), CGridCtrl::GetImageList(), GetMargin(), CGridCtrl::GetSortAscending(), CGridCtrl::GetSortColumn(), GetState(), GetText(), CGridCell::GetTextClr(), GetTextClr(), CGridCtrl::GetTrackFocusCell(), GVIS_SELECTED, GVL_NONE, IsDropHighlighted(), IsFixed(), IsFocused(), CGridCtrl::IsValid(), and TRUE.
Referenced by CGridCtrl::CreateDragImage(), CGridCellCombo::Draw(), CGridCtrl::OnDraw(), and CGridCtrl::RedrawCell().
virtual BOOL CGridCellBase::Edit | ( | int | , | |
int | , | |||
CRect | , | |||
CPoint | , | |||
UINT | , | |||
UINT | ||||
) | [inline, virtual] |
Reimplemented in CGridCell, and CGridCellCombo.
Definition at line 145 of file GridCellBase.h.
Referenced by CGridCtrl::OnEditCell().
virtual void CGridCellBase::EndEdit | ( | ) | [inline, virtual] |
Reimplemented in CGridCell, and CGridCellCombo.
Definition at line 147 of file GridCellBase.h.
Referenced by CGridCtrl::EndEditing().
virtual COLORREF CGridCellBase::GetBackClr | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 112 of file GridCellBase.h.
Referenced by Draw(), CGridCtrl::GetCell(), CGridCtrl::GetItem(), CGridCtrl::GetItemBkColour(), operator=(), and PrintCell().
CSize CGridCellBase::GetCellExtent | ( | CDC * | pDC | ) | [virtual] |
Definition at line 528 of file GridCellBase.cpp.
References ASSERT, GetGrid(), GetImage(), CGridCtrl::GetImageList(), GetText(), GetTextExtent(), and max.
Referenced by CGridCtrl::AutoSize(), CGridCtrl::AutoSizeColumn(), and CGridCtrl::AutoSizeRow().
virtual LPARAM CGridCellBase::GetData | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 108 of file GridCellBase.h.
Referenced by CGridCtrl::GetCell(), CGridCtrl::GetItem(), CGridCtrl::GetItemData(), and operator=().
CGridCellBase * CGridCellBase::GetDefaultCell | ( | ) | const [virtual] |
Definition at line 87 of file GridCellBase.cpp.
References CGridCtrl::GetDefaultCell(), GetGrid(), IsFixedCol(), and IsFixedRow().
Referenced by Draw(), CGridCell::GetFont(), CGridCell::GetFontObject(), CGridCell::GetFormat(), CGridCell::GetMargin(), GetTextExtent(), and PrintCell().
virtual LOGFONT* CGridCellBase::GetFont | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell, and CGridDefaultCell.
Definition at line 113 of file GridCellBase.h.
Referenced by Draw(), CGridCtrl::GetCell(), CGridCtrl::GetItem(), CGridCtrl::GetItemFont(), GetTextExtent(), CGridCtrl::OnMouseMove(), and operator=().
virtual CFont* CGridCellBase::GetFontObject | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell, and CGridDefaultCell.
Definition at line 114 of file GridCellBase.h.
Referenced by Draw(), GetTextExtent(), and PrintCell().
virtual DWORD CGridCellBase::GetFormat | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 110 of file GridCellBase.h.
Referenced by Draw(), CGridCtrl::GetCell(), CGridCtrl::GetItem(), CGridCtrl::GetItemFormat(), GetTextExtent(), operator=(), and PrintCell().
virtual CGridCtrl* CGridCellBase::GetGrid | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 115 of file GridCellBase.h.
Referenced by Draw(), GetCellExtent(), GetDefaultCell(), GetTextExtent(), GetTextRect(), operator=(), PrintCell(), and SendMessageToParent().
virtual int CGridCellBase::GetImage | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 107 of file GridCellBase.h.
Referenced by Draw(), CGridCtrl::GetCell(), GetCellExtent(), CGridCtrl::GetItem(), CGridCtrl::GetItemImage(), GetTextRect(), operator=(), and PrintCell().
virtual UINT CGridCellBase::GetMargin | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 116 of file GridCellBase.h.
Referenced by Draw(), CGridCtrl::GetCell(), CGridCtrl::GetItem(), GetTextExtent(), GetTextRect(), operator=(), and PrintCell().
virtual DWORD CGridCellBase::GetState | ( | ) | const [inline, virtual] |
Reimplemented in CGridDefaultCell.
Definition at line 109 of file GridCellBase.h.
References m_nState.
Referenced by CGridCtrl::CopyTextFromGrid(), CGridCtrl::CreateCell(), Draw(), CGridCtrl::GetItem(), CGridCtrl::GetItemState(), CGridDefaultCell::GetState(), and operator=().
virtual LPCTSTR CGridCellBase::GetText | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 105 of file GridCellBase.h.
Referenced by CGridCtrl::CopyTextFromGrid(), Draw(), GetCellExtent(), CGridCtrl::GetItemText(), GetTipText(), CSettingsDlgBar::OnNotify(), operator=(), and PrintCell().
virtual COLORREF CGridCellBase::GetTextClr | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 111 of file GridCellBase.h.
Referenced by Draw(), CGridCtrl::GetCell(), CGridCtrl::GetItem(), CGridCtrl::GetItemFgColour(), operator=(), and PrintCell().
CSize CGridCellBase::GetTextExtent | ( | LPCTSTR | str, | |
CDC * | pDC = NULL | |||
) | [virtual] |
Definition at line 450 of file GridCellBase.cpp.
References ASSERT, BOOL(), FALSE, GetDefaultCell(), GetFont(), GetFontObject(), GetFormat(), GetGrid(), CGridDefaultCell::GetHeight(), GetMargin(), CGridDefaultCell::GetWidth(), and TRUE.
Referenced by GetCellExtent(), and CGridCtrl::GetTextExtent().
BOOL CGridCellBase::GetTextRect | ( | LPRECT | pRect | ) | [virtual] |
Definition at line 430 of file GridCellBase.cpp.
References GetGrid(), GetImage(), CGridCtrl::GetImageList(), GetMargin(), and TRUE.
Referenced by CGridCtrl::GetTextRect(), and GetTipTextRect().
virtual LPCTSTR CGridCellBase::GetTipText | ( | ) | const [inline, virtual] |
Definition at line 106 of file GridCellBase.h.
References GetText().
Referenced by CGridCtrl::OnMouseMove().
virtual BOOL CGridCellBase::GetTipTextRect | ( | LPRECT | pRect | ) | [inline, virtual] |
Definition at line 140 of file GridCellBase.h.
References GetTextRect().
Referenced by CGridCtrl::OnMouseMove().
virtual BOOL CGridCellBase::IsDropHighlighted | ( | ) | const [inline, virtual] |
Definition at line 128 of file GridCellBase.h.
References GVIS_DROPHILITED, and m_nState.
Referenced by Draw().
virtual BOOL CGridCellBase::IsEditing | ( | ) | const [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 120 of file GridCellBase.h.
Referenced by CGridCtrl::IsItemEditing(), and CGridCtrl::OnMouseMove().
virtual BOOL CGridCellBase::IsFixed | ( | ) | const [inline, virtual] |
Definition at line 122 of file GridCellBase.h.
References GVIS_FIXED, and m_nState.
Referenced by Draw(), and PrintCell().
virtual BOOL CGridCellBase::IsFixedCol | ( | ) | const [inline, virtual] |
Definition at line 123 of file GridCellBase.h.
References GVIS_FIXEDCOL, and m_nState.
Referenced by GetDefaultCell().
virtual BOOL CGridCellBase::IsFixedRow | ( | ) | const [inline, virtual] |
Definition at line 124 of file GridCellBase.h.
References GVIS_FIXEDROW, and m_nState.
Referenced by GetDefaultCell().
virtual BOOL CGridCellBase::IsFocused | ( | ) | const [inline, virtual] |
Definition at line 121 of file GridCellBase.h.
References GVIS_FOCUSED, and m_nState.
Referenced by Draw().
virtual BOOL CGridCellBase::IsModified | ( | ) | const [inline, virtual] |
virtual BOOL CGridCellBase::IsReadOnly | ( | ) | const [inline, virtual] |
virtual BOOL CGridCellBase::IsSelected | ( | ) | const [inline, virtual] |
void CGridCellBase::OnClick | ( | CPoint | PointCellRelative | ) | [protected, virtual] |
void CGridCellBase::OnClickDown | ( | CPoint | PointCellRelative | ) | [protected, virtual] |
void CGridCellBase::OnDblClick | ( | CPoint | PointCellRelative | ) | [protected, virtual] |
virtual void CGridCellBase::OnEndEdit | ( | ) | [inline, protected, virtual] |
Reimplemented in CGridCell.
Definition at line 156 of file GridCellBase.h.
Referenced by CGridCtrl::OnEndEditCell().
void CGridCellBase::OnMouseEnter | ( | ) | [protected, virtual] |
Definition at line 378 of file GridCellBase.cpp.
void CGridCellBase::OnMouseLeave | ( | ) | [protected, virtual] |
Definition at line 389 of file GridCellBase.cpp.
void CGridCellBase::OnMouseOver | ( | ) | [protected, virtual] |
void CGridCellBase::OnRClick | ( | CPoint | PointCellRelative | ) | [protected, virtual] |
BOOL CGridCellBase::OnSetCursor | ( | ) | [protected, virtual] |
Definition at line 419 of file GridCellBase.cpp.
References TRUE.
Referenced by CGridCtrl::OnSetCursor().
void CGridCellBase::operator= | ( | const CGridCellBase & | cell | ) | [virtual] |
Definition at line 68 of file GridCellBase.cpp.
References GetBackClr(), GetData(), GetFont(), GetFormat(), GetGrid(), GetImage(), GetMargin(), GetState(), GetText(), GetTextClr(), SetBackClr(), SetData(), SetFont(), SetFormat(), SetGrid(), SetImage(), SetMargin(), SetState(), SetText(), and SetTextClr().
Referenced by CGridCell::operator=().
BOOL CGridCellBase::PrintCell | ( | CDC * | pDC, | |
int | nRow, | |||
int | nCol, | |||
CRect | rect | |||
) | [virtual] |
Definition at line 553 of file GridCellBase.cpp.
References FALSE, GetBackClr(), GetDefaultCell(), GetFontObject(), GetFormat(), GetGrid(), CGridCtrl::GetGridLines(), GetImage(), CGridCtrl::GetImageList(), GetMargin(), CGridCtrl::GetShadedPrintOut(), GetText(), GetTextClr(), GVL_NONE, IsFixed(), and TRUE.
Referenced by CGridCtrl::OnPrint(), CGridCtrl::PrintColumnHeadings(), and CGridCtrl::PrintRowButtons().
void CGridCellBase::Reset | ( | ) | [virtual] |
Reimplemented in CGridCell.
Definition at line 63 of file GridCellBase.cpp.
References m_nState.
Referenced by CGridCell::Reset().
LRESULT CGridCellBase::SendMessageToParent | ( | int | nRow, | |
int | nCol, | |||
int | nMessage | |||
) |
Definition at line 710 of file GridCellBase.cpp.
References GetGrid(), and CGridCtrl::SendMessageToParent().
virtual void CGridCellBase::SetBackClr | ( | COLORREF | ) | [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 99 of file GridCellBase.h.
Referenced by CGridCtrl::OnSysColorChange(), operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemBkColour().
virtual void CGridCellBase::SetCoords | ( | int | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in CGridCell, and CGridDefaultCell.
Definition at line 103 of file GridCellBase.h.
Referenced by CGridCtrl::CreateCell(), and CGridCtrl::SetCell().
virtual void CGridCellBase::SetData | ( | LPARAM | ) | [inline, virtual] |
Reimplemented in CGridCell, and CGridDefaultCell.
Definition at line 95 of file GridCellBase.h.
Referenced by operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemData().
virtual void CGridCellBase::SetFont | ( | const LOGFONT * | ) | [inline, virtual] |
Reimplemented in CGridCell, and CGridDefaultCell.
Definition at line 100 of file GridCellBase.h.
Referenced by operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemFont().
virtual void CGridCellBase::SetFormat | ( | DWORD | ) | [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 97 of file GridCellBase.h.
Referenced by CGridCtrl::CreateCell(), operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemFormat().
virtual void CGridCellBase::SetGrid | ( | CGridCtrl * | ) | [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 102 of file GridCellBase.h.
Referenced by CGridCtrl::CreateCell(), and operator=().
virtual void CGridCellBase::SetImage | ( | int | ) | [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 94 of file GridCellBase.h.
Referenced by operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemImage().
virtual void CGridCellBase::SetMargin | ( | UINT | ) | [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 101 of file GridCellBase.h.
Referenced by operator=(), and CGridCtrl::SetItem().
virtual void CGridCellBase::SetState | ( | DWORD | nState | ) | [inline, virtual] |
Reimplemented in CGridDefaultCell.
Definition at line 96 of file GridCellBase.h.
References m_nState.
Referenced by CGridCtrl::CreateCell(), CGridCtrl::GetCell(), CSettingsDlgBar::initGrid(), operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemState().
virtual void CGridCellBase::SetText | ( | LPCTSTR | ) | [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 93 of file GridCellBase.h.
Referenced by CGridCtrl::CutSelectedText(), operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemText().
virtual void CGridCellBase::SetTextClr | ( | COLORREF | ) | [inline, virtual] |
Reimplemented in CGridCell.
Definition at line 98 of file GridCellBase.h.
Referenced by CGridCtrl::OnSysColorChange(), operator=(), CGridCtrl::SetItem(), and CGridCtrl::SetItemFgColour().
friend class CGridCtrl [friend] |
DWORD CGridCellBase::m_nState [protected] |
Definition at line 167 of file GridCellBase.h.
Referenced by GetState(), IsDropHighlighted(), IsFixed(), IsFixedCol(), IsFixedRow(), IsFocused(), IsModified(), IsReadOnly(), IsSelected(), Reset(), and SetState().