BCGControlBar Pro for MFC
void AFXAPI DDX_Switch ( CDataExchange *  pDX,
int  nIDC,
int &  value 
)

Initializes or retrieves the current value of a switch control.

The DDX_Switch function manages the transfer of boolean data between a switch control (CBCGPSwitchCtrl) in a dialog box, form view, or control view and a COleDateTimeSpan data member of the dialog box, form view, or control view object.

Parameters
pDXA pointer to a CDataExchange object.
nIDCThe resource ID of the switch control associated with the member variable.
valueA reference to an integer member variable of the dialog box, form view, or control view object with which data is exchanged.