<< Return to Main Index

< Return to Class Index

CGXEditControl::CGXEditControl

CGXEditControl(CGXGridCore* pGrid, UINT nID);

pGrid

Pointer to the parent grid

nID

Specifies the edit control’s window ID.

Remarks

Constructs an edit control object.

You need to register this object in the grid with CGXGridCore::RegisterControl before you can use it in cells (see example).

Example

This example shows how Objective Grid registers a edit control in the grid:

// Edit Control
RegisterControl(GX_IDS_CTRL_EDIT, new CGXEditControl(this, GX_IDS_CTRL_EDIT),    TRUE /* set default control */)

See Also

CGXGridCore::RegisterControl

CGXEditControl

Class Overview | Class Members