INFO: CListBox::SelItemRange Selects Only Two or More Items (129428)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Professional Edition 2.0
- Microsoft Visual C++, 32-bit Professional Edition 2.1
This article was previously published under Q129428 SUMMARY
The documentation for CListBox::SelItemRange says that it can be used to
select one or more items in a CListBox. This is not correct. SelItemRange
can only be used to select two or more items. This is because
CListBox::SelItemRange uses the windows message LB_SELITEMRANGEEX which
deselects the item if the first and last index of the range are equal.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbBug kbcode kbdocfix kbListBox KbUIDesign kbVC400fix KB129428 |
---|
|