<< Return to Main Index

< Return to Class Index

CGXVScrollEdit::CGXVScrollEdit

CGXVScrollEdit(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 static control in the grid:

// Vscroll Edit Control
RegisterControl(GX_IDS_CTRL_SCROLLEDIT, new CGXVScrollEdit(this, 18003));

// 18003 is simply an id. The id range reserved for Objective Grid is 18000-18999.

See Also

CGXGridCore::RegisterControl

CGXVScrollEdit

Class Overview | Class Members