Public Member Functions | |
| CCustomDraw (bool bAutoDelete=false) | |
| Constructor. | |
| virtual void | DrawHeader (CHeaderPaintInfo &paintInfo, const CPaintContext &paintContext, UINT paintFilter) |
| Called to draw a header in CGrid. | |
| virtual void | DrawColumn (CColumnPaintInfo &paintInfo, const CPaintContext &paintContext, UINT paintFilter) |
| Called to draw a column in CGrid. | |
| virtual void | DrawLine (CGridLine &line, const CPaintContext &paintContext, UINT paintFilter) |
| Called to draw a line. | |
| virtual void | DrawCell (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) |
| Called to draw a cell. | |
| virtual const ILinePaintFormat & | GetLinePaintFormat (const Common::CDataObject *pDO, HITEM hItem, ContextType contextType, int nRow) const |
| Provides default line paint format. The user can specify his preferred format for each line in CGrid. | |
| virtual const ICellPaintFormat & | GetCellPaintFormat (const CColumn *column, const Common::CDataObject *pDO, HITEM hItem, ContextType contextType, int nRow) const |
| Provides default cell paint format. The user can specify his preferred format for each cell in CGrid. | |
| virtual int | GetOptimalHeaderHeight (CHeaderPaintInfo &paintInfo, const CPaintContext &paintContext, UINT paintFilter) const |
| Calculates optimal header height. | |
| virtual int | GetOptimalRowHeight (CFont *font, CDC &dc) const |
| Calculates optimal row height. | |
| virtual int | GetOptimalCellWidth (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) const |
| Calculates optimal cell width considering a font, hierarchy, text size... | |
| virtual bool | AutoDelete () const |
| IAutoDelete implementation. The function always returns true. | |
| CCustomDraw | ( | bool | bAutoDelete = false |
) |
| void DrawHeader | ( | CHeaderPaintInfo & | paintInfo, | |
| const CPaintContext & | paintContext, | |||
| UINT | paintFilter | |||
| ) | [virtual] |
Called to draw a header in CGrid.
| [in] | paintInfo | Header related infomation. |
| [in] | paintContext | General information like device context, reference to CGrid, header, etc... |
| [in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implements ICustomDraw.
| void DrawColumn | ( | CColumnPaintInfo & | paintInfo, | |
| const CPaintContext & | paintContext, | |||
| UINT | paintFilter | |||
| ) | [virtual] |
Called to draw a column in CGrid.
| [in] | paintInfo | Column related infomation. |
| [in] | paintContext | General information like device context, reference to CGrid, header, etc... |
| [in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implements ICustomDraw.
| void DrawLine | ( | CGridLine & | line, | |
| const CPaintContext & | paintContext, | |||
| UINT | paintFilter | |||
| ) | [virtual] |
Called to draw a line.
| [in] | line | Line related infomation to perform painting. |
| [in] | paintContext | General information like device context, reference to CGrid, header, etc... |
| [in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implements ICustomDraw.
| void DrawCell | ( | CGridCell & | cell, | |
| const CPaintContext & | paintContext, | |||
| UINT | paintFilter | |||
| ) | [virtual] |
Called to draw a cell.
| [in] | cell | Cell related infomation to perform painting. |
| [in] | paintContext | General information like device context, reference to CGrid, header, etc... |
| [in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implements ICustomDraw.
| const ILinePaintFormat & GetLinePaintFormat | ( | const Common::CDataObject * | pDO, | |
| HITEM | hItem, | |||
| ContextType | contextType, | |||
| int | nRow | |||
| ) | const [virtual] |
Provides default line paint format. The user can specify his preferred format for each line in CGrid.
| [in] | pDO | Pointer to a data object. |
| [in] | hItem | Handle in CGrid |
| [in] | contextType | Context type, where a handle is placed. |
| [in] | nRow | Index of a line in CGrid. |
Implements ICustomDraw.
| const ICellPaintFormat & GetCellPaintFormat | ( | const CColumn * | column, | |
| const Common::CDataObject * | pDO, | |||
| HITEM | hItem, | |||
| ContextType | contextType, | |||
| int | nRow | |||
| ) | const [virtual] |
Provides default cell paint format. The user can specify his preferred format for each cell in CGrid.
| [in] | column | Pointer to a column. |
| [in] | pDO | Pointer to a data object. |
| [in] | hItem | Handle in CGrid |
| [in] | contextType | Context type where a handle is placed. |
| [in] | nRow | Index of a line in CGrid. |
Implements ICustomDraw.
| int GetOptimalHeaderHeight | ( | CHeaderPaintInfo & | paintInfo, | |
| const CPaintContext & | paintContext, | |||
| UINT | paintFilter | |||
| ) | const [virtual] |
Calculates optimal header height.
| [in] | paintInfo | Header related infomation. |
| [in] | paintContext | General information like device context, reference to CGrid, header, etc... |
| [in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implements ICustomDraw.
| int GetOptimalRowHeight | ( | CFont * | font, | |
| CDC & | dc | |||
| ) | const [virtual] |
Calculates optimal row height.
| [in] | font | The font, used by CGrid. |
| [in] | dc | Device context. |
Implements ICustomDraw.
| int GetOptimalCellWidth | ( | CGridCell & | cell, | |
| const CPaintContext & | paintContext, | |||
| UINT | paintFilter | |||
| ) | const [virtual] |
Calculates optimal cell width considering a font, hierarchy, text size...
| [in] | cell | Cell related infomation. |
| [in] | paintContext | General information like device context, reference to CGrid, header, etc... |
| [in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implements ICustomDraw.
| Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |