![]() |
Report Control: row number limits? |
Post Reply
|
| Author | |
Russ
Groupie
Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Topic: Report Control: row number limits?Posted: 09 May 2005 at 2:48am |
|
I just looked at the Report control sample provided with v9.51. If you change OnInitDialog in the PerfomanceTestDlg.cpp to add 100000 instead of just 1000 you'll have no luck scrolling list down to the last item. The code crashes after you get behind 30000 (approx) records.
are there any hardcoded limits on the number of rows a control can contain? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2005 at 11:12am |
|
It was fixed in 9.60. Right, limit was 36000.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Russ
Groupie
Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2005 at 1:21pm |
|
can I have a patch - just to fix this bug? I do not need any extra features, just the control that works
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2005 at 4:03pm |
|
Replace this member: void CXTPReportControl::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) // decide what to do for each diffrent scroll event case SB_PAGEUP: nCurPos = max(nCurPos - GetReportAreaRows(nCurPos, false), 0); break; case SB_THUMBTRACK: if (!GetScrollInfo(SB_VERT, &si) ) SetTopRow(nCurPos); CWnd::OnVScroll(nSBCode, nPos, pScrollBar); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Russ
Groupie
Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 May 2005 at 12:31pm |
|
Thank you, Oleg
your reply is highly appreciated! (как обычно :) |
|
![]() |
|
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 |