jerinjohn
asked on
CListctrl performace issue with more number of records
Hi All,
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.
Thanks.
Jerin
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.
Thanks.
Jerin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.