<< Return to Main Index

< Return to Class Index

CGXRadioButton::CGXRadioButton

CGXRadioButton(CGXGridCore* pGrid, BOOL bDraw3d);

pGrid

Pointer to the parent grid.

bDraw3d

TRUE if the radio buttons should be drawn with newer 3d-look; FALSE if it should be drawn with older Windows 3.x look.

Remarks

Constructs a radio button 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 you how Objective Grid registers a radio button control in the grid:

// Radio Buttons
RegisterControl(GX_IDS_CTRL_RADIOBTN3D,
   new CGXRadioButton(this, TRUE /* 3d Look */));

See Also

CGXGridCore::RegisterControl

CGXRadioButton

Class Overview | Class Members