Need help wif toggling check box
-
Hi, How do i toggle a checkbox? if lets say i want it to be FALSE initially...the moment i click on it...i want it to be TRUE, and so on...how do i do that?? Also, how do i get the state of the check box? Thanks 4 ur help!!
checkbox is button with style as BS_CHECKBOX Use GetState() and SetState() of CButton class. The chosen One :)
-
Hi, How do i toggle a checkbox? if lets say i want it to be FALSE initially...the moment i click on it...i want it to be TRUE, and so on...how do i do that?? Also, how do i get the state of the check box? Thanks 4 ur help!!
If you give it the BS_AUTOCHECKBOX style, it toggles automatically when you click. otherwise, as already said, it's internally a BUTTON class, you can query and change the check state with BM_SETCHECK and BM_GETCHECK (or CButton::SetCheck, GetCheck)
"Vierteile den, der sie Hure schimpft mit einem türkischen Säbel."
sighist | Agile Programming | doxygen