|
| CGridColumnTraitCombo () |
| CGridColumnTraitCombo - Constructor.
|
|
void | SetMaxItems (UINT nMaxItems) |
| Set max height (in items) of the CComboBox when doing dropdown. More...
|
|
UINT | GetMaxItems () const |
| Retrieves max height (in items) of the CComboBox when doing dropdown. More...
|
|
void | SetStyle (DWORD dwStyle) |
| Set style used when creating CComboBox for cell value editing. More...
|
|
DWORD | GetStyle () const |
| Get style used when creating CComboBox for cell value editing. More...
|
|
void | SetMaxWidth (UINT nMaxWidth) |
| Set max width (in pixels) of the CComboBox when doing dropdown. More...
|
|
UINT | GetMaxWidth () const |
| Retrieves max width (in pixels) of the CComboBox when doing dropdown. More...
|
|
void | SetShowDropDown (BOOL bShowIt) |
| Set whether to show drop down of the CComboBox at edit begin. More...
|
|
BOOL | GetShowDropDown () const |
| Retrieves whether to show drop down of the CComboBox at edit begin. More...
|
|
void | LoadList (const CSimpleMap< DWORD_PTR, CString > &comboList, int nCurSel) |
| Fills the combobox with the items of the fixed item-list. More...
|
|
void | AddItem (DWORD_PTR nItemData, const CString &strItemText) |
| Adds combobox item to the fixed combobox item-list. More...
|
|
void | ClearFixedItems () |
| Clears the list of fixed combobox items.
|
|
virtual CWnd * | OnEditBegin (CGridListCtrlEx &owner, int nRow, int nCol) |
| Overrides OnEditBegin() to provide a CComboBox cell value editor. More...
|
|
virtual CWnd * | OnEditBegin (CGridListCtrlEx &owner, int nRow, int nCol, CPoint pt) |
| Overrides OnEditBegin() to allow special handling when clicking image or checkbox. More...
|
|
virtual void | OnEditEnd () |
| Overrides OnEditEnd() to ensure that temporary combobox variable is reset when cell value editing is completed. More...
|
|
Public Member Functions inherited from CGridColumnTraitImage |
| CGridColumnTraitImage () |
| CGridColumnTraitImage - Constructor.
|
|
| CGridColumnTraitImage (int nImageIndex, int nImageCount) |
| CGridColumnTraitImage - Constructor. More...
|
|
void | AddImageIndex (int nImageIdx) |
| Adds image index to the list of images to switch between. More...
|
|
void | AddImageIndex (int nImageIdx, const CString &strImageText, bool bEditable=true) |
| Adds image index to the list of images to switch between. More...
|
|
void | SetImageText (int nImageIdx, const CString &strImageText, bool bEditable=true) |
| Updates the image text for the specified image index. More...
|
|
void | SetSortImageIndex (bool bValue) |
| Should primary sorting be based on the image index (checkbox sorting) More...
|
|
bool | GetSortImageIndex () const |
| Get whether primary sorting is based on image index (checkbox sorting) More...
|
|
void | SetToggleSelection (bool bValue) |
| Should images (checkboxes) be flipped for all selected rows, when icon is clicked. More...
|
|
bool | GetToggleSelection () const |
| Get whether images (checkboxes) should be flipped for all selected rows, when icon is clicked. More...
|
|
void | SetSingleClickEdit (bool bValue) |
| Should cell editor be launched on first mouse-click, or should it wait for cell to have focus first. More...
|
|
bool | GetSingleClickEdit () const |
| Get whether editor should be launched on first mouse-click. More...
|
|
void | SetIconClickBeginEdit (bool bValue) |
| Configure whether the icon-click should trigger OnBeginEdit. More...
|
|
bool | GetIconClickBeginEdit () const |
| Get whether mouse-click on icon, should also perform OnBeginEdit. More...
|
|
Public Member Functions inherited from CGridColumnTraitText |
| CGridColumnTraitText () |
| CGridColumnTraitText - Constructor.
|
|
virtual void | OnCustomDraw (CGridListCtrlEx &owner, NMLVCUSTOMDRAW *pLVCD, LRESULT *pResult) |
| Overrides the custom draw handler, to allow custom coloring of cells with this column trait. More...
|
|
void | SetSortFormatNumber (bool bValue) |
| Should cell values be compared as numbers when sorting. More...
|
|
Public Member Functions inherited from CGridColumnTrait |
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...
|
|
ColumnState & | GetColumnState () |
|
BOOL | HasMetaFlag (DWORD flag) |
|
void | SetMetaFlag (DWORD flag, bool enable) |
|
|
virtual void | Accept (CGridColumnTraitVisitor &visitor) |
| Accept Visitor Pattern.
|
|
virtual CComboBox * | CreateComboBox (CGridListCtrlEx &owner, int nRow, int nCol, DWORD dwStyle, const CRect &rect) |
| Create a CComboBox as cell value editor. More...
|
|
Protected Member Functions inherited from CGridColumnTraitImage |
virtual int | OnSortRows (LPCTSTR pszLeftValue, LPCTSTR pszRightValue, bool bAscending) |
| Compares two cell values according to specified sort order. More...
|
|
virtual int | OnSortRows (const LVITEM &leftItem, const LVITEM &rightItem, bool bAscending) |
| Compares two cell values according to checkbox state. More...
|
|
virtual bool | IsCellReadOnly (CGridListCtrlEx &owner, int nRow, int nCol, CPoint pt) const |
| Check if current image index blocks for editing of cell label. More...
|
|
virtual int | OnClickEditStart (CGridListCtrlEx &owner, int nRow, int nCol, CPoint pt, bool bDblClick) |
| Checks if the mouse click should start the cell editor (OnEditBegin) Normally the cell needs to have focus first before cell editor can be started. More...
|
|
virtual int | FlipImageIndex (CGridListCtrlEx &owner, int nRow, int nCol) |
| Switch to the next image index. More...
|
|
virtual CWnd * | OnEditBeginImage (CGridListCtrlEx &owner, int nRow, int nCol) |
| Reacts to clicking on the image, and allows all selected rows to be flipped. More...
|
|
virtual CWnd * | OnEditBeginCheckbox (CGridListCtrlEx &owner, int nRow, int nCol) |
| Reacts to clicking on the checkbox, and allows all selected rows to be flipped. More...
|
|
Protected Member Functions inherited from CGridColumnTraitText |
virtual bool | UpdateTextFont (NMLVCUSTOMDRAW *pLVCD, LOGFONT &textFont) |
| Specifies af the font color if one is specified. More...
|
|
virtual bool | UpdateTextColor (NMLVCUSTOMDRAW *pLVCD, COLORREF &textColor) |
| Changes the text color if one is specified. More...
|
|
virtual bool | UpdateBackColor (NMLVCUSTOMDRAW *pLVCD, COLORREF &backColor) |
| Changes the background color if one is specified. More...
|
|
virtual int | GetCellFontHeight (CGridListCtrlEx &owner) |
| Calculates the proper row-height according to font, which a cell value editor should fit in. More...
|
|
virtual CRect | GetCellEditRect (CGridListCtrlEx &owner, int nRow, int nCol) |
| Returns the proper rectangle, which a cell value editor should fit in. More...
|
|
CGridColumnTraitCombo implements a CComboBox as cell-editor.