News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Formating a listview column

Started by Grincheux, September 05, 2013, 05:03:12 AM

Previous topic - Next topic

Grincheux

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)

jj2007

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

Grincheux

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.

jj2007


sinsi

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.