Guess I'm missing something...
The simplest way to do this is to use GetCtrlVal (panel, Control, &val);
val (integer) will be 0 if checkbox is not checked, 1 if checked.
Should your actual problem be different just explain me and I'll try to help you.
Roberto