Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am subclassing CListBox to create my custom list view(multiline)
I learned that item height limit is 255. Is there a way to increase it ? I need to put very long sentences in it.

What I have tried:

SetItemHeight()

OnMeasureItem(MEASUREITEMSTRUCT lpMIS)
{
lpMIS->itemHeight = 400;
}
Posted
Updated 14-Jul-19 1:40am

 
Share this answer
 
Comments
Maciej Los 14-Jul-19 7:40am    
Great!
Richard MacCutchan 14-Jul-19 8:55am    
OP's comment suggests that it may not work, but I was unable to find any documented limit.
Maciej Los 14-Jul-19 16:38pm    
Me too, especially when the second parameter responsible for item height is type of uint (not byte).
Richard is right by pointing out to use SetItemHeight method. Take a look here: Increasing the Item’s Height in CListBox | VC Tips++[^]
 
Share this answer
 
Comments
Member 4366502 14-Jul-19 10:12am    
sry, I cant delete solutions only comments

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900