Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have a ClistCtr and i wondering if there is a way to change the height of a row (line) so that will handle more than one line. I found some ClistCtrl Code with headers in two lines but no code for a simple row.

PS : I use VS 2005 and ClistCtrl in report mode.

Thx for any help
Jochen Arndt 29-Feb-12 3:57am    
Does this C++ forum thread [^] answers your question?
Schehaider_Aymen 29-Feb-12 4:42am    
Yes indeed it's what i m looking for. Thx For the link (and hope will work)

1 solution

In your CListCtrl(derived) class handle message ON_WM_MEASUREITEM_REFLECT() and set the desired height needed.

Hopes this helps
Share this answer
Schehaider_Aymen 29-Feb-12 4:40am    
You mean i have to create a derived class of CLIstCtrl and overload wthe WM_MEASUREITEM and the WM_SETFONT !!! (I think that it won't work with a report mode ListCtrl)

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