VC++: How would you display a list box having a check box in front of each item?
How would you display a list box having a check box in front of each item?
We come across a list box having check boxes many times while installing softwares like Microsoft Visual C++, MS-office etc. We can also implement such a list box and give a professional look to our application. This is how it can be done...
Derive a class, say, mycheckbox from CCheckListBox class.
Create an object of mycheckbox and call Create( ) function.
Add strings using CCheckListBox::AddString( ) function.
Run the application and you will see the list control with check boxes. You can interact with the control using member functions of CCheckListBox.




Comments
Log in or create a user account to comment.