Hi every One!
Into a listview column I need to display a comment.
This comment can be longer than the listview column.
I would like to display the comment on many lines but always in the same column.
As an example, all the text written here would have to be stored into one listview column.
How can I proceed ?
Thanks for your help (in advance)
Salut Grincheux,
There is no multiline style for listviews, but you can use ownerdraw and DrawRect.
Googling for listview multiline yields quite a number of hits, too.
See in particular Custom Draw With List-View Controls (http://msdn.microsoft.com/en-us/library/windows/desktop/ff919569%28v=vs.85%29.aspx#Cust_draw_LV_controls)
I thought that with the column format style : LVCFMT_LINE_BREAK it was possible. I read how to use it but I don't understand.
Looks like Vista/Win7 only...
Quote from: MSDN
LVIF_COLFMT
Windows Vista and later. The piColFmt member is valid or must be set.
piColFmt
Windows Vista: Not implemented.
Ah, Microsoft.