Public Member Functions | |
CLongColorReflector () | |
Constructor. | |
virtual | ~CLongColorReflector () |
Virtual destructor. | |
virtual bool | Match (const Common::CFormat *format) const |
Indicates whether a reflector matches a specified format. | |
virtual bool | CreateAndAttachControl (CEditInPlaceContext &context, const Common::CFormat *format, IEditInPlace::StartReason startReason) |
Creates a new dropdown color picker control. | |
virtual void | ShowControl () |
Shows the control. | |
virtual bool | CanStopEdit (const CEditInPlaceContext &context, IEditInPlace::StopReason reason) const |
Indicates whether CGrid can stop edit in place in the control. | |
virtual bool | Apply (CEditInPlaceContext &context, const Common::CFormat *format) |
Applies the new value set by user in MFC control to the specified field in the data object. | |
virtual bool | DetachAndDestroyControl (CGrid &grid, HITEM hItem, const CColumn *column) |
Detaches MFC control from CGrid and destroys it. | |
virtual bool | CanDrawControl (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) |
virtual UINT | PrePaintCell (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) const |
Modifies background color that is applied during cell painting. | |
virtual void | PostPaintCell (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) |
Paints a corresponded background and a dropdown button on the right of a cell. | |
virtual bool | CanActivateOnThumbClick (const CEditInPlaceContext &context, const Common::CFormat *format) const |
Indicates that a dropdown color picker control can be activated if the user clicks the dropdown button painted in a cell. | |
virtual CWnd * | GetControl () |
Gets MFC control. |
bool Match | ( | const Common::CFormat * | format | ) | const [virtual] |
Indicates whether a reflector matches a specified format.
The reflector matches only to the long-type format. Long-type value presents a 32-bit RGB color.
[in] | format | A textual format to verify whether a reflector matches to. |
Implements IControlReflector.
bool CreateAndAttachControl | ( | CEditInPlaceContext & | context, | |
const Common::CFormat * | format, | |||
IEditInPlace::StartReason | startReason | |||
) | [virtual] |
Creates a new dropdown color picker control.
Creates MFC control of CEmbeddedCombo type and populates it with the strings, returned by the format.
[in] | context | Indicates the cell, where the control should be attached. |
[in] | format | Format object, that permits to populate MFC control. |
[in] | startReason | Indicates the reason, why MFC control should be created. |
Implements IControlReflector.
bool CanStopEdit | ( | const CEditInPlaceContext & | context, | |
IEditInPlace::StopReason | reason | |||
) | const [virtual] |
Indicates whether CGrid can stop edit in place in the control.
[in] | context | Indicates the cell, where the control is attached. |
[in] | reason | Indicates the reason, why the control should be detached and then destroyed. |
Implements IControlReflector.
bool Apply | ( | CEditInPlaceContext & | context, | |
const Common::CFormat * | format | |||
) | [virtual] |
Applies the new value set by user in MFC control to the specified field in the data object.
[in] | context | Indicates the cell, where the control is attached. |
[in] | format | Format object, that permits to transform the formatted value in MFC control to an unformatted form and then set it into the appropriated field of the data object. |
Implements IControlReflector.
Detaches MFC control from CGrid and destroys it.
[in] | grid | CGrid object |
[in] | hItem | Handle of a line in CGrid |
[in] | column | Column in the grid |
Implements IControlReflector.
bool CanDrawControl | ( | CGridCell & | cell, | |
const CPaintContext & | paintContext, | |||
UINT | paintFilter | |||
) | [virtual] |
[in] | cell | Cell in CGrid |
[in] | paintContext | Nested information to process drawing. |
[in] | paintFilter | Current paint filter applied to draw a cell. |
Implements IControlReflector.
UINT PrePaintCell | ( | CGridCell & | cell, | |
const CPaintContext & | paintContext, | |||
UINT | paintFilter | |||
) | const [virtual] |
Modifies background color that is applied during cell painting.
[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. |
Reimplemented from IControlReflector.
void PostPaintCell | ( | CGridCell & | cell, | |
const CPaintContext & | paintContext, | |||
UINT | paintFilter | |||
) | [virtual] |
Paints a corresponded background and a dropdown button on the right of a cell.
[in] | cell | Cell in CGrid |
[in] | paintContext | Nested information to process drawing. |
[in] | paintFilter | Current paint filter applied to draw a cell. |
Implements IControlReflector.
bool CanActivateOnThumbClick | ( | const CEditInPlaceContext & | context, | |
const Common::CFormat * | format | |||
) | const [virtual] |
Indicates that a dropdown color picker control can be activated if the user clicks the dropdown button painted in a cell.
[in] | context | Indicates the cell, where the control is attached. |
[in] | format | Format object, that permits to populate MFC control. |
Implements IControlReflector.
CWnd * GetControl | ( | ) | [virtual] |
Gets MFC control.
Implements IControlReflector.
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by ![]() |