I have check boxes and they have BOOL variables tied to them (I right clicked on it and added the variable to each check box). When I put the code in OnBnClicked event of a checkbox to change the truth value of the variable, it does not actually change it from false (it's default value).
I have code to perform an event depending on the BOOL value of the variables associated with my check boxes, and no matter what I try, I can't seem to get them to switch to true. I'm not getting any errors in my code.
for example: I have a checkbox named bob. I have a variable attached to it called m_Bob , in the OnBnClicked event of the bob checkbox, I would put the code m_Bob = true;
In my initialization code for the class that my form belongs to, I will say
if (bob == true) { (do this) }
Am I missing something? It seems like this should be pretty straightforward yet there's something that I am overlooking.