|
#include <Dapfor/GUI/EmbeddedControlParams.h>
Public Types | |
| enum | Anchor { none = 0x0, left = 0x1, top = 0x2, right = 0x4, bottom = 0x8, all = left | top | right | bottom } |
| Indicates a cell side, where MFC control is attached. More... | |
Public Member Functions | |
| CEmbeddedControlParams () | |
| Default constructor. | |
| CEmbeddedControlParams (const CEmbeddedControlParams ¶ms) | |
| Copy constructor. | |
| CEmbeddedControlParams (UINT anchor, int leftOffset, int topOffset, int rightOffset, int bottomOffset, bool invalidateControl) | |
| Constructor. | |
| UINT | GetAnchor () const |
| Determines how MFC control is attached to a cell. | |
| int | GetLeftOffset () const |
| An offset from the left side of a cell. | |
| int | GetTopOffset () const |
| An offset from the top side of a cell. | |
| int | GetRightOffset () const |
| An offset from the right side of a cell. | |
| int | GetBottomOffset () const |
| An offset from the bottom side of a cell. | |
| bool | GetInvalidateControl () const |
| Indicates, that CGrid can invalidate MFC control when the field of the data object is modified. | |
| void | SetAnchor (UINT anchor) |
| Sets a new position of MFC control relative to a cell. | |
| void | SetLeftOffset (int offset) |
| Sets a new offset from the left side of a cell. | |
| void | SetTopOffset (int offset) |
| Sets a new offset from the top side of a cell. | |
| void | SetRightOffset (int offset) |
| Sets a new offset from the right side of a cell. | |
| void | SetBottomOffset (int offset) |
| Sets a new offset from the bottom side of a cell. | |
| void | SetInvalidateControl (bool invalidateControl) |
| Enables CGrid to invalidate MFC control when the field of the data object is modified. | |
| enum Anchor |
Indicates a cell side, where MFC control is attached.
| none | CGrid doesn't modify a size of the control. The control is attached to the top left corner of the cell with the offset, specified in the constructor. |
| left | The control is attached to the left of the cell. |
| top | The control is attached to the top of the cell. |
| right | The control is attached to the right of the cell. |
| bottom | The control is attached to the bottom of the cell. |
| all | The control is attached to all sides of the cell. In this case CGrid changes automatically a size of the control to fit to the cell bounds. |
| CEmbeddedControlParams | ( | const CEmbeddedControlParams & | params | ) |
Copy constructor.
| [in] | params | Parameters to be copied. |
| CEmbeddedControlParams | ( | UINT | anchor, | |
| int | leftOffset, | |||
| int | topOffset, | |||
| int | rightOffset, | |||
| int | bottomOffset, | |||
| bool | invalidateControl | |||
| ) |
Constructor.
| [in] | anchor | Indicates how an MFC control is attached to CGrid. |
| [in] | leftOffset | An offset from the left side of the cell if both CEmbeddedControlParams::left and CEmbeddedControlParams::right flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| [in] | topOffset | An offset from the top side of the cell if both CEmbeddedControlParams::top and CEmbeddedControlParams::bottom flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| [in] | rightOffset | An offset from the right side of the cell if both CEmbeddedControlParams::left and CEmbeddedControlParams::right flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| [in] | bottomOffset | An offset from the bottom side of the cell if both CEmbeddedControlParams::top and CEmbeddedControlParams::bottom flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| [in] | invalidateControl | Indicates, that CGrid can invalidate MFC control while manipulations with the cell, the control is attached to. |
| UINT GetAnchor | ( | ) | const [inline] |
Determines how MFC control is attached to a cell.
| int GetLeftOffset | ( | ) | const [inline] |
An offset from the left side of a cell.
The parameter makes sense only if both CEmbeddedControlParams::left and CEmbeddedControlParams::right flags are not set.
| int GetTopOffset | ( | ) | const [inline] |
An offset from the top side of a cell.
The parameter makes sense only if both CEmbeddedControlParams::top and CEmbeddedControlParams::bottom flags are not set.
| int GetRightOffset | ( | ) | const [inline] |
An offset from the right side of a cell.
The parameter makes sense only if both CEmbeddedControlParams::left and CEmbeddedControlParams::right flags are not set.
| int GetBottomOffset | ( | ) | const [inline] |
An offset from the bottom side of a cell.
The parameter makes sense only if both CEmbeddedControlParams::top and CEmbeddedControlParams::bottom flags are not set.
| bool GetInvalidateControl | ( | ) | const [inline] |
| void SetAnchor | ( | UINT | anchor | ) | [inline] |
Sets a new position of MFC control relative to a cell.
| [in] | anchor | Indicates how MFC control is attached to CGrid. |
| void SetLeftOffset | ( | int | offset | ) | [inline] |
Sets a new offset from the left side of a cell.
| [in] | offset | An offset from the left side of the cell if both CEmbeddedControlParams::left and CEmbeddedControlParams::right flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| void SetTopOffset | ( | int | offset | ) | [inline] |
Sets a new offset from the top side of a cell.
| [in] | offset | An offset from the top side of the cell if both CEmbeddedControlParams::top and CEmbeddedControlParams::bottom flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| void SetRightOffset | ( | int | offset | ) | [inline] |
Sets a new offset from the right side of a cell.
| [in] | offset | An offset from the right side of the cell if both CEmbeddedControlParams::left and CEmbeddedControlParams::right flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| void SetBottomOffset | ( | int | offset | ) | [inline] |
Sets a new offset from the bottom side of a cell.
| [in] | offset | An offset from the bottom side of the cell if both CEmbeddedControlParams::top and CEmbeddedControlParams::bottom flags are not set. If any of these flags are set in anchor, this parameter doesn't make sense. |
| void SetInvalidateControl | ( | bool | invalidateControl | ) | [inline] |
| Copyright Dapfor 2007-2009 | Generated on Sat Jan 30 15:01:26 2010 for MFCGrid by 1.5.5 |