I think what you want is an owner-drawn listbox.
An efficient way of looping through items in a windows list box and apply a word wrap
-
03-12-2021 - |
Question
I have a word wrap which is the width of the list box, how can I split the text that populates this listbox and push it onto another line if it exceeds this wrap? I need to apply this to every line of text in the list box.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow