CGXListBox::CGXListBox

CGXListBox(CGXGridCore* pGrid , UINT nID);

pGrid

Pointer to the parent grid.

nID

Specifies the list box control’s window ID.

Remarks

Constructs a list box 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:

// Listbox Control
RegisterControl(GX_IDS_CTRL_LISTBOX, new CGXListBox(this, 18014));
// 18014 is simply an id. The id range reserved for Objective Grid is 18000-18999.

See Also

 CGXGridCore::RegisterControl

CGXListBox

 Class Overview |  Class Members