Search code examples
c++listboxeditbox

CEditBox or CListBox which one is better for big amout of logging data


This always was a big question for me that for a very big amount of logs (like 100,000 line log) which one is better in performance, scrolling,... also consider formatting the text with color is a must.


Solution

  • Under the circumstances, I'd probably use a listbox.

    1. You can create a virtual listbox to support lots of items relatively well.
    2. Neither supports color1 but owner-drawn listboxes are easier.
    3. Edit controls are "flow" oriented, not line oriented.

    1Other than one foreground and one background color.