Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Column(s) fitting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Column(s) fitting

 Post Reply Post Reply
Author
Message
Paddy View Drop Down
Groupie
Groupie


Joined: 28 July 2003
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paddy Quote  Post ReplyReply Direct Link To This Post Topic: Column(s) fitting
    Posted: 29 August 2007 at 10:21am
Hi,
I try to change my columns width to a best fit (like a double click for each column):

CXTPReportColumns* theColumns = m_wndReport.GetColumns();
if (NULL != theColumns)
{
    int nbColumns = theColumns->GetCount();
    for (int i = 0; i < nbColumns; i++)
    {
        CXTPReportColumn* theColumn = theColumns->GetAt(i);
        if (NULL != theColumn)
        {
            if (theColumn != m_pSmallPicsColumn)
                m_wndReport.GetReportHeader()->BestFit(theColumn);
        }
    }
}


But it seems the columns just have the width "column.caption+6" as in the source? I need a width like "max_columnentry_width+6"...

Greets,

Patrik
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.125 seconds.