From: Peter on
I have CListCtrl type report.
I need to write into it's items multiline text.
When I insert into text "\r\n", it does not help.

How to write multiline text into CListCtrl cell ?

Other thing what I need is to change font in some cells.
I know SetFont(), but how can I retrieve HWND of cell ?

Thanks !
Peter
From: AliR on
You have to create an owner draw control that does that.
The only problem with that is that all your rows have to have the same
height which could cause problems

Here is an example of how to do it: (not so good but at least is a starting
point)
http://www.codeproject.com/listctrl/changerowheight.asp

AliR.

"Peter" <Peter(a)discussions.microsoft.com> wrote in message
news:5ADCF914-BF89-43F8-9C60-9B8AA10F31D3(a)microsoft.com...
> I have CListCtrl type report.
> I need to write into it's items multiline text.
> When I insert into text "\r\n", it does not help.
>
> How to write multiline text into CListCtrl cell ?
>
> Other thing what I need is to change font in some cells.
> I know SetFont(), but how can I retrieve HWND of cell ?
>
> Thanks !
> Peter


From: Tom Serface on
Looking at this source code might help you out.

http://www.codeproject.com/miscctrl/ReportProject.asp

Tom

"Peter" <Peter(a)discussions.microsoft.com> wrote in message
news:5ADCF914-BF89-43F8-9C60-9B8AA10F31D3(a)microsoft.com...
>I have CListCtrl type report.
> I need to write into it's items multiline text.
> When I insert into text "\r\n", it does not help.
>
> How to write multiline text into CListCtrl cell ?
>
> Other thing what I need is to change font in some cells.
> I know SetFont(), but how can I retrieve HWND of cell ?
>
> Thanks !
> Peter