I need to limit the entries that appear in my list control since two much entries make my MFC program slow. Is there a way to show only the last fe开发者_如何学JAVAw entries (say for an example the most recent 100 entries) in a list control???
Thank You!!!
Take a look at virtual list control:
http://msdn.microsoft.com/en-us/library/ye4z8x58%28VS.80%29.aspx
http://www.codeguru.com/cpp/controls/listview/advanced/article.php/c4151
Either you:
- don't add too many items (clear contents, only add the 100 you want in it)
- use virtual list mode like Alex says.
精彩评论