Setting column width like LVSCW_AUTOSIZE_USEHEADER |
Post Reply |
Author | |
inmaurik
Groupie Joined: 13 July 2007 Location: Netherlands Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 20 November 2008 at 4:13am |
In the CListCtrl you can set the column width with values LVSCW_AUTOSIZE or LVSCW_AUTOSIZE_USEHEADER.
Is there also a way to add a column and set the width of that column to just fit the caption of that column. I saw you can call BestFit of CXTPReportHeader to fit the content of the column but I haven't found a method that set the width to fit the caption. Is there a method like CListCtrl::GetStringWidth which calculates the width that is required to fit the string in the column header (and which can be called at the moment of inserting columns)? Thanks in advance |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |