Question

i would like to add a list of check boxes to my win32 application, because i need a control element with multiple selection. I've searched the msdn docs and found exactly what i need in this article: https://msdn.microsoft.com/en-us/library/windows/desktop/dn742407.aspx. But i can't find any code related to it. Is this a special control element? Or is this just a list view filled with check boxes? Or is this a special style for the combo box control? Would appreciate if someone could provide an example or provide a link to the documentation of the control.

Was it helpful?

Solution

That screenshot is a ListView control with LVS_EX_CHECKBOXES.

The documented you linked to is UI guidance, not programming documentation. It's talking about UI design, not programmatic control names.

OTHER TIPS

This does not appear to be a built-in capability to the standard LISTBOX control, or there would be a LBS_xxx style constant to enable it.

MFC provides a class CCheckListBox to do this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top