<< Return to Main Index

< Return to Class Index

CGXCheckBox::CGXCheckBox

CGXCheckBox(CGXGridCore* pGrid, BOOL bDraw3d = TRUE, UINT nBitmapResourceId = 0, UINT nPrintResourceId = 0);

pGrid

Pointer to the parent grid.

bDraw3d

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

nBitmapResourceId

Specifies the bitmap which holds the drawing for checked/unchecked state when the checkbox is displayed on the screen. If you pass zero, the default bitmap will be used.

nPrintResourceId

Specifies the bitmap which holds the drawing for checked/unchecked state when the checkbox is printed. If you pass zero, the default bitmap will be used.

Remarks

Constructs a checkbox 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 checkbox control in the grid:

// Check Boxes
RegisterControl(GX_IDS_CTRL_CHECKBOX3D,
   new CGXCheckBox(this, TRUE /* 3d Look */));

See Also

CGXGridCore::RegisterControl

CGXCheckBox

Class Overview | Class Members