Hello Sir,
i want to check the value of check box control whether it is checked or not and on the basis of this want to take some actions.
i have taken a check box control and using MFC ClassWizard, i have mapped the control id value to a variable (bool).
but on the check/uncheck event of checkbox control, when i check the value of variable, it is always in false state.
How can i check the correct state of checkbox control(checked or unchecked)
Thanks and Regards
Munish Gupta

to check the correct state of checkbox control
Mervyn-w
This forum is for C++ language issues only.
Also, please use descriptive subject lines.
Thanks,
Brian
irvendeep
First you should map to a BOOL not a bool. (read this FAQ for the difference)
Second, how do you check for the state Can you post the code
The simplest way is like this:
Sean D Wright
Thanx