On my CDialog I have two CListBox classes:

enter image description here

  • The top one is a standard list box with extended selection style.
  • The bottom one is a derived CCheckListBox.

I don't want the user to be able to physically adjust the "selection" in the top listbox. This is because the bottom listbox is in charge. When you select an item in the bottom one it performs some operations to decide which items to select in the top one.

I can't set the selection mode to "None" because then I can't select items programatically. So how can I set the top list box to disallow selection from a users perspective?

0

There are 0 best solutions below