Click to See Complete Forum and Search --> : CListCtrl: multiline column headers


Wollny
June 4th, 1999, 06:22 AM
Hallo everybody!

I have a problem with CListCtrl. I have to have a long column header with short column entries. So it would be fine, if I could split the header into two lines. But setting a text like "line1\r\nline2"

doesn´t work. Any idea how this could work?

Thanks in advance,
Thomas

tdg
June 7th, 1999, 08:25 PM
Dream on...

But if you're hell bent on doing this, the new common control Header (that comes with IE 3.0+) can support custom draw, however. you'll have to do the work yourself, though. Can't just specify the string.

Jim Watters
June 9th, 1999, 10:20 AM
I did this. see post How to change the height of Header in CListCtrl

http://www.codeguru.net/bbs/wt/showpost.pl?Board=vc&Number=15958&page=0&view=collapsed&sb=5#Post15958