CGXDateTimeCtrl::CGXDateTimeCtrl

CGXDateTimeCtrl(CGXGridCore* pGrid, UINT nId);

pGrid

Pointer to the parent grid.

nId

Specifies the edit controls window ID.

Remarks

Constructs a CGXDateTimeCtrl control.

Example

The following snippet from CGXControlFactory shows how the controls are created and registered inside the grid.

case GX_IDS_CTRL_DATETIME:

{

CGXDateTimeCtrl* pDateTime = new CGXDateTimeCtrl(pGrid, GX_IDS_CTRL_DATETIME);

pDateTime->CreateControl(WS_CHILD|GXDT_DTS_CALENDAR,

CRect(0,0,0,0));

pDateTime->m_bInactiveDrawButton = FALSE;

pDateTime->m_bInactiveDrawSpin = FALSE;

pControl = pDateTime;

}

break;

case GX_IDS_CTRL_DATETIMENOCAL:

{

CGXDateTimeCtrl* pDateTimeNoCal = new CGXDateTimeCtrl(pGrid, GX_IDS_CTRL_DATETIMENOCAL);

pDateTimeNoCal->CreateControl(WS_CHILD, CRect(0,0,0,0));

pDateTimeNoCal->m_bInactiveDrawSpin = FALSE;

pDateTimeNoCal->m_bInactiveDrawButton = FALSE;

pControl = pDateTimeNoCal;

}

break;

See Also

 CGXGridCore::RegisterControl

CGXDateTimeCtrl

 Class Overview |  Class Members