From: Peter on 1 Sep 2005 07:55 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 1 Sep 2005 10:37 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 1 Sep 2005 10:56 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
|
Pages: 1 Prev: How to change the font in Static Text Next: 'GetDefaultPrinter' : undeclared identifier. |