CListctrl performace issue with more number of records
Posted on 2006-07-11
I am facing high performance problem when working with CListCtrl with owner draw data and styles.
When i am inserting 3000 records it takes more time. I want to avoid this delay. My idea is insert around 100 records initially and in background insert the remaining records. So user no need to wait till insert operation completes. Which is the best solution to solve this type problems. I cant change existing functionalities for Virtual list control.
Different ideas in my mind are
1) Use thread function to insert the data as background process
2) Insert the data into the list control when user scroll the list
3) Use the Peekmessage and Pump message instead of going for thread.
Please suggest me the solution/suggestion if any one faced like this problem.