Creating a virtual list isn't much harder than creating an ordinary CListCtrl. Add a list control in the resource editor as you usually do. Then check the style "Owner data", and then add a CListCtrl variable for this control. The only difference from an ordinary CListCtrl is the "Owner data" (LVS_OWNERDATA) style.http://www.codeproject.com/listctrl/virtuallist.asp#virtual 很好的解决方法 谢谢oyljerry(☆勇敢的心☆-Paper Writing)
考虑一下能否分段显示吧~只显示前100条,内存中存放所有记录,排序可用快排等,取前一百条加到listctrl中.
To:oyljerry(☆勇敢的心☆-Paper Writing) 用Virtual ListCtrl,这个快
能具体说明吗? 谢谢!
很好的解决方法
谢谢oyljerry(☆勇敢的心☆-Paper Writing)
我也做过,不过对于几千的数据,显示就需要几秒钟。不过排序倒是满快的。你是不是排序后又重新刷新了list亚,从头又写了一次阿关注