Get the value from the control.

Call:

ts_diaolgcontrol(iDialogcontrolDescr, "SetCheck", int &onoff);


Here:

onoff - return value - 0/1.