CGridListCtrlEx
|
CGridColumnTrait specifies the methods needed for custom cell handling. More...
Classes | |
struct | ColumnState |
Public Member Functions | |
virtual | ~CGridColumnTrait () |
Destructor. | |
virtual void | OnInsertColumn (CGridListCtrlEx &owner, int nCol) |
Override OnInsertColumn() to provide your own special styling of the column, after column has been added. More... | |
virtual void | OnCustomDraw (CGridListCtrlEx &owner, NMLVCUSTOMDRAW *pLVCD, LRESULT *pResult) |
Override OnCustomDraw() to provide your own special cell-drawing. More... | |
virtual int | OnClickEditStart (CGridListCtrlEx &owner, int nRow, int nCol, CPoint pt, bool bDblClick) |
Override OnClickEditStart() to control whether cell edit should be started when clicked with the mouse. More... | |
virtual CWnd * | OnEditBegin (CGridListCtrlEx &owner, int nRow, int nCol) |
Override OnEditBegin() to provide your own special cell-edit control. More... | |
virtual CWnd * | OnEditBegin (CGridListCtrlEx &owner, int nRow, int nCol, CPoint pt) |
Override OnEditBegin() to provide your own special cell-edit control. More... | |
virtual void | OnEditEnd () |
Override OnEditEnd() in case one need to change state after a cell-edit. | |
virtual int | OnSortRows (const LVITEM &leftItem, const LVITEM &rightItem, bool bAscending) |
Override OnSortRows() to provide your own special row sorting. More... | |
virtual int | OnSortRows (LPCTSTR pszLeftValue, LPCTSTR pszRightValue, bool bAscending) |
Override OnSortRows() to provide your own special row sorting. More... | |
virtual void | Accept (CGridColumnTraitVisitor &visitor) |
Override Accept() and update CGridColumnTraitVisitor for new column-trait classes. More... | |
virtual bool | IsCellReadOnly (CGridListCtrlEx &owner, int nRow, int nCol, CPoint pt) const |
Override IsCellReadOnly() to provide custom control whether a cell can be edited. More... | |
ColumnState & | GetColumnState () |
BOOL | HasMetaFlag (DWORD flag) |
void | SetMetaFlag (DWORD flag, bool enable) |
Protected Attributes | |
ColumnState | m_ColumnState |
CGridColumnTrait specifies the methods needed for custom cell handling.
|
inlinevirtual |
Override Accept() and update CGridColumnTraitVisitor for new column-trait classes.
Reimplemented in CGridColumnTraitImage, CGridColumnTraitCombo, CGridColumnTraitText, CGridColumnTraitDateTime, CGridColumnTraitEdit, and CGridColumnTraitMultilineEdit.
|
inlinevirtual |
Override IsCellReadOnly() to provide custom control whether a cell can be edited.
owner | The list control starting edit |
nRow | The index of the row for the cell |
nCol | The index of the column for the cell |
pt | The position clicked, in client coordinates. |
Reimplemented in CGridColumnTraitImage.
|
inlinevirtual |
Override OnClickEditStart() to control whether cell edit should be started when clicked with the mouse.
OnEditBegin() will be called when return value >= 1. Do NOT start the editor within this method, as it will cause havoc in the mouse click handler.
owner | The list control being clicked |
nRow | The index of the row |
nCol | The index of the column |
pt | The position clicked, in client coordinates. |
bDblClick | The position was double clicked |
Reimplemented in CGridColumnTraitImage, and CGridColumnTraitHyperLink.
|
inlinevirtual |
Override OnCustomDraw() to provide your own special cell-drawing.
owner | The list control drawing |
pLVCD | Pointer to NMLVCUSTOMDRAW structure |
pResult | Modification to the drawing stage (CDRF_NEWFONT, etc.) |
Reimplemented in CGridColumnTraitText.
|
inlinevirtual |
Override OnEditBegin() to provide your own special cell-edit control.
owner | The list control starting edit |
nRow | The index of the row for the cell to edit |
nCol | The index of the column for the cell to edit |
Reimplemented in CGridColumnTraitImage, CGridColumnTraitHyperLink, CGridColumnTraitCombo, CGridColumnTraitDateTime, and CGridColumnTraitEdit.
|
inlinevirtual |
Override OnEditBegin() to provide your own special cell-edit control.
owner | The list control starting edit |
nRow | The index of the row for the cell to edit |
nCol | The index of the column for the cell to edit |
pt | The position clicked, in client coordinates. |
Reimplemented in CGridColumnTraitImage, CGridColumnTraitHyperLink, CGridColumnTraitCombo, CGridColumnTraitDateTime, and CGridColumnTraitEdit.
|
inlinevirtual |
Override OnInsertColumn() to provide your own special styling of the column, after column has been added.
owner | The list control adding column |
nCol | The index of the column just added |
|
inlinevirtual |
Override OnSortRows() to provide your own special row sorting.
leftItem | Left cell item |
rightItem | Right cell item |
bAscending | Perform sorting in ascending or descending order |
Reimplemented in CGridColumnTraitImage, CGridColumnTraitDateTime, and CGridColumnTraitText.
|
inlinevirtual |
Override OnSortRows() to provide your own special row sorting.
pszLeftValue | Left cell value |
pszRightValue | Right cell value |
bAscending | Perform sorting in ascending or descending order |
Reimplemented in CGridColumnTraitImage, CGridColumnTraitDateTime, and CGridColumnTraitText.