The information in this article applies to:
SUMMARYThe 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. MORE INFORMATIONHere are two possible ways to enable the ability to select one or more items:
-or- Sample Code
NOTE: This problem was fixed in Microsoft Visual C++, 32-bit Edition,
version 4.0. The following is from the Visual C++ 4.0 Books On-Line
entry for CListBox::SelItemRange:
Selects multiple consecutive items in a multiple-selection list box. Additional query words: 2.00 2.10 3.00 3.10 4.00 noupdate
Keywords : kbcode kbdocfix kbMFC KbUIDesign kbVC |
Last Reviewed: January 26, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |