I have made a List control dialog box with checkboxes. i want that when all the elements of the list are selected using shift and one of the checkboxes is clicked the rest of the selected ones should also be clicked. What should i add in my code for this to happen?
int i =m_pCheckListBox.GetNextItem(-1, LVNI_ALL);
while( i != -1 )
if(m_pCheckListBox.GetCheck(i) != 0)
TRACE("%d\n", i );
// you can add your own code here
i = m_pCheckListBox.GetNextItem( i, LVNI_ALL);
i've been using checkboxes on my list control as described above and it works great. my problem is that we've switched to MFC70 (Visual Studio .NET) and added the manifest resource to use common controls 6.0 when available. my problem is that on XP (which ships with 6.0) when an item in my control is selected, the checkbox is not drawn for that item. is anyone else having this problem? it's quite irritating and i may just have to go back to using comm ctrls 5.0, but i would like to support the new XP visual styles if possible.