开发者

Limiting the number of entries in a list control MFC

开发者 https://www.devze.com 2022-12-28 06:57 出处:网络
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 mo

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.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号