Inserting a 'list' of items into a CListCtrl, CListBox & CTreeCtrl
Posted on 2000-01-05
1) Does anyone know how to insert a list of itmes into a CListCtrl, a CListBox and a CTreeCtrl?
2) Does anyone know how to select a list of items in a CListCtrl, a CListBox and a CTreeCtrl?
Right now I am inserting / selecting each item one at a time which causes some messages to be sent (eg. LVN_ITEMCHANGED and LVN_SELCHANGED), therefore the update is very slowly - eventhough I use LockWindowUpdate & UnlockWindowUpdate.
I am capturing the above messages and do a lot of stuff each time the selections change - this slows down the process of adding items into the three mentioned controls.