Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends,


I can select checkbox1(selectall options) remaining all checkbox will also select.

I want select_all option checkboxes code sample
Posted
Updated 13-Feb-15 17:20pm
v3
Comments
_Asif_ 13-Feb-15 7:40am    
Please help yourself by helping us. Improve question by adding your code and comments in more detail

1 solution

Create a ON_BN_CLICKED handler for the "Select All" check box.

Inside the handler call SetCheck for all the check box controls that should be checked. Do this by using the dialog member variables of the check boxes if present or using GetDlgItem passing the control identifiers.

This process can be simplified when using consecutive identifiers for the check boxes. Then you can use a for loop to access the controls.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900