Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Multi-line column header
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multi-line column header

 Post Reply Post Reply
Author
Message
prorpy View Drop Down
Newbie
Newbie


Joined: 08 February 2007
Location: Netherlands
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote prorpy Quote  Post ReplyReply Direct Link To This Post Topic: Multi-line column header
    Posted: 08 February 2007 at 3:27am
Hi all,
 
Does anyone know if it's possible to create column headers with multiple rows. For instance: in an email grid there's a column header
 
From
 
I'd like to change that to
 
Received
From
 
Any ideas?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 6:30am
Hi,

Set FixedRowHeight = False and assign DT_WORDBREAK to column alignment.
 
See example in CReportSampleView::OnReportcontrolMultilinesample()

--
WBR,
Serge
Back to Top
prorpy View Drop Down
Newbie
Newbie


Joined: 08 February 2007
Location: Netherlands
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote prorpy Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 8:31am
Thx!
Back to Top
PatS View Drop Down
Groupie
Groupie


Joined: 11 May 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote PatS Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2007 at 12:30pm
I can't get the wordwrap to work for the columnheader caption.  Only for the records.  Am I missing something?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2007 at 6:00pm
Should be working fine. Set '\n' as lines divider, and enable Report Control / Multiline Sample option in a sample application.

--
WBR,
Serge
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.