Public Member Functions | |
CEmbeddedControlAdapter (CWnd *pWnd, const CEmbeddedControlParams ¶ms) | |
Constructor. | |
virtual | ~CEmbeddedControlAdapter () |
Virtual destructor. | |
virtual void | MoveControl (const CRect &cellRect) |
Moves MFC control over the client area of the grid. | |
virtual CWnd * | GetControl () const |
Gets MFC control. | |
virtual bool | PaintControl (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter) |
Paints MFC control. | |
virtual void | MoveAway () |
Moves MFC control outside of the client area without changing its visibility. | |
virtual void | HideControl () |
Makes the control invisible. | |
virtual void | ShowControl () |
Makes the control visible. | |
virtual void | AddSink (ISink *sink) |
Adds a callback interface to receive notifications from MFC control. | |
virtual void | RemoveSink (ISink *sink) |
Removes a callback interface from the subscription list. | |
virtual const CEmbeddedControlParams & | GetParams () const |
Gets current settings. | |
virtual bool | AutoDelete () const |
IAutoDelete implementation. Returns true. | |
Classes | |
struct | ISink |
Callback interface to receive notifications from MFC control. More... |
An object of this class enables communication between CGrid and MFC control. It forwards some notifications from the control to the grid i.e. focus lost, control destruction, etc. On the other hand, the grid can manage visibility, placement the control over the client area and paint via an adapter in the control.
CEmbeddedControlAdapter | ( | CWnd * | pWnd, | |
const CEmbeddedControlParams & | params | |||
) |
Constructor.
[in] | pWnd | MFC control is attached to CGrid |
[in] | params | Attachment parameters. |
void MoveControl | ( | const CRect & | cellRect | ) | [virtual] |
Moves MFC control over the client area of the grid.
[in] | cellRect | Rectangle in the client area of CGrid where MFC control should be displaced. |
CWnd * GetControl | ( | ) | const [virtual] |
Gets MFC control.
bool PaintControl | ( | CGridCell & | cell, | |
const CPaintContext & | paintContext, | |||
UINT | paintFilter | |||
) | [virtual] |
Paints MFC control.
[in] | cell | Cell related infomation to perform painting. |
[in] | paintContext | General information like device context, reference to CGrid, header, etc... |
[in] | paintFilter | Set of the painting operations, defined in PaintFilter enumeration. |
void AddSink | ( | ISink * | sink | ) | [virtual] |
Adds a callback interface to receive notifications from MFC control.
[in] | sink | Callback to subscribe for control notifications. |
void RemoveSink | ( | ISink * | sink | ) | [virtual] |
Removes a callback interface from the subscription list.
[in] | sink | Callback to unsubscribe from control notifications. |
const CEmbeddedControlParams & GetParams | ( | ) | const [virtual] |
Gets current settings.
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |