Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DDX_FieldCheck

 

The DDX_FieldCheck function manages the transfer of int data between a check box control in a dialog box, form view, or control view object and an int data member of the dialog box, form view, or control view object.


      void AFXAPI DDX_FieldCheck(
   CDataExchange* pDX,
   int nIDC,
   int& value,
   CRecordset* pRecordset 
);
void AFXAPI DDX_FieldCheck(
   CDataExchange* pDX,
   int nIDC,
   int& value,
   CDaoRecordset* pRecordset 
);

pDX

A pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction.

nIDC

The resource ID of the check box control associated with the control property.

value

A reference to a member variable of the dialog box, form view, or control view object with which data is exchanged.

pRecordset

A pointer to the CRecordset or CDaoRecordset object with which data is exchanged.

When DDX_FieldCheck is called, value is set to the current state of the check box control, or the control's state is set to value, depending on the direction of transfer.

For more information about DDX, see Dialog Data Exchange and Validation.

Requirements

Header: afxdao.h

Show: