Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Report Control OnSize - Stack Overflow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control OnSize - Stack Overflow

 Post Reply Post Reply
Author
Message
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Topic: Report Control OnSize - Stack Overflow
    Posted: 05 October 2008 at 6:10am
uploads/20081005_060740_ReportOnSize.zip
Xtreme ToolkitPro v11.2.0

how to fix?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2008 at 2:44am

Hi,

Thanks,  Please as workaround comment

//m_wndReport.GetReportHeader()->SetAutoColumnSizing( FALSE );
line.
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2008 at 3:03pm
ReportOnSize.zip is short example to show problem.

My workaround is ( i need AutoColumnSizing = FALSE ):

void XXXReportControl::AdjustScrollBars()
{
    // фиским багу в кодеджоке - переполнение стека
    if ( m_bOnSizeRunning ) m_nAdjustScrollBars++;
    if ( m_nAdjustScrollBars < 6 )
    {
        CXTPReportControl::AdjustScrollBars();
    }
}

void XXXReportControl::OnSize( UINT nType, int cx, int cy )
{
    if ( m_bOnSizeRunning == FALSE )
    {
        CXTPReportControl::OnSize( nType, cx, cy );
        m_nAdjustScrollBars = 0;
    }
}

Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2008 at 3:26pm
Oleg, how can i send private messages to you? Where is PM button?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2008 at 8:56am
Originally posted by zitz zitz wrote:

Oleg, how can i send private messages to you? Where is PM button?


You can't PM.  You can send and email to support@codejock.com instead.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2008 at 9:56am
Yes, we also changed our sources to prevent it for future.
Thanks!
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.