Public Member Functions | |
CEditInPlace (bool bAutoDelete=false) | |
Constructor. | |
virtual | ~CEditInPlace () |
Virtual destructor. | |
virtual bool | CanBeginEdit (const CEditInPlaceContext &context, StartReason startReason) const |
Indicates whether edit in place can be started in a specified cell with a given start reason. | |
virtual bool | AttachControl (CEditInPlaceContext &context, StartReason startReason, const Common::CFormat *format) |
Starts edit in place. Handles control creation through IControlReflector interface. The best place to choose the appropriate reflector if default behavior doesn't conform to your needs. | |
virtual bool | CanStopEdit (const CEditInPlaceContext &context, StopReason stopReason) const |
Indicates whether edit in place can be stopped. | |
virtual void | OnBeginEdit (const CEditInPlaceContext &context, CWnd *attachedControl) |
Called at the beginning of edit in place. | |
virtual void | OnEndEdit (CEditInPlaceContext &context, StopReason stopReason, CWnd *detachedControl, const Common::CFormat *format) |
Stops edit in place. Detaches a control throught IControlReflector interface. | |
virtual bool | Navigate (CEditInPlaceContext &context, StopReason stopReason) |
Allows to choose the next control upon a navigation event like Tab, KeyUp, KeyDown etc. | |
virtual UINT | PrePaintCell (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) |
Forwards cell drawing of CGrid painting routine to an appropriate reflector before the cell is painted. | |
virtual void | PostPaintCell (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) |
Forwards cell drawing of CGrid painting routine to an appropriate reflector after the cell is painted. | |
virtual IControlReflector * | GetReflector (const CGrid &grid, HITEM hItem, const Common::CDataObject *pDO, const CColumn *column, const Common::CFormat *format) |
Looks for the reflector that matches the specified format. | |
virtual bool | AutoDelete () const |
IAutoDelete interface implementation. Indicates whether the object should be destroyed in the destructor of CGrid. |
CEditInPlace | ( | bool | bAutoDelete = false |
) |
Constructor.
[in] | bAutoDelete | If true, indicates, that CGrid should destroy this object in its destructor. If false, it is a responsibility of the programmer to destroy this object and free memory. |
bool CanBeginEdit | ( | const CEditInPlaceContext & | context, | |
StartReason | startReason | |||
) | const [virtual] |
Indicates whether edit in place can be started in a specified cell with a given start reason.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place to be processed. |
[in] | startReason | Indicates the reason for the start of edit in place. |
Implements IEditInPlace.
bool AttachControl | ( | CEditInPlaceContext & | context, | |
IEditInPlace::StartReason | startReason, | |||
const Common::CFormat * | format | |||
) | [virtual] |
Starts edit in place. Handles control creation through IControlReflector interface. The best place to choose the appropriate reflector if default behavior doesn't conform to your needs.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place to be processed. |
[in] | format | Format to customize the control populating |
[in] | startReason | Indicates the reason for the start of edit in place. |
Implements IEditInPlace.
bool CanStopEdit | ( | const CEditInPlaceContext & | context, | |
StopReason | stopReason | |||
) | const [virtual] |
Indicates whether edit in place can be stopped.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place is processed. |
[in] | stopReason | Indicates the reason for the stop of edit in place. |
Implements IEditInPlace.
void OnBeginEdit | ( | const CEditInPlaceContext & | context, | |
CWnd * | editControl | |||
) | [virtual] |
Called at the beginning of edit in place.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place to be processed. |
[in] | editControl | Attached and populated edit in place control. |
Implements IEditInPlace.
void OnEndEdit | ( | CEditInPlaceContext & | context, | |
StopReason | stopReason, | |||
CWnd * | detachedControl, | |||
const Common::CFormat * | format | |||
) | [virtual] |
Stops edit in place. Detaches a control throught IControlReflector interface.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place is processed. |
[in] | stopReason | Indicates the reason for the stop of edit in place. |
[in] | detachedControl | Control to be detached. |
[in] | format | Format to transform string to the non-formatted value which will be passed to the data object. |
Implements IEditInPlace.
bool Navigate | ( | CEditInPlaceContext & | context, | |
StopReason | stopReason | |||
) | [virtual] |
Allows to choose the next control upon a navigation event like Tab, KeyUp, KeyDown etc.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place is processed. |
[in] | stopReason | Indicates the reason for the stop of edit in place. |
Implements IEditInPlace.
UINT PrePaintCell | ( | CGridCell & | cell, | |
const CPaintContext & | paintContext, | |||
UINT | paintFilter | |||
) | [virtual] |
Forwards cell drawing of CGrid painting routine to an appropriate reflector before the cell is painted.
[in] | cell | Cell related information |
[in] | paintContext | Contains common information like device context, header, grid etc. |
[in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implements IEditInPlace.
IControlReflector * GetReflector | ( | const CGrid & | grid, | |
HITEM | hItem, | |||
const Common::CDataObject * | pDO, | |||
const CColumn * | column, | |||
const Common::CFormat * | format | |||
) | [virtual] |
Looks for the reflector that matches the specified format.
[in] | grid | Reference to the grid |
[in] | hItem | Handle to the inem in the grid |
[in] | pDO | Pointer to the data object |
[in] | column | The column |
[in] | format | Textual format |
bool AutoDelete | ( | ) | const [virtual] |
IAutoDelete interface implementation. Indicates whether the object should be destroyed in the destructor of CGrid.
Implements IAutoDelete.
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by ![]() |