Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Report control update
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report control update

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


Joined: 30 November 2004
Location: Poland
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote haiku Quote  Post ReplyReply Direct Link To This Post Topic: Report control update
    Posted: 10 December 2004 at 6:07am

Hello Developers,

I want to know how to update control efficiently. If only one row/record has to be updated, than entire control is being redrawn (BeginUpdate/EndUpdate). Calling InvalidateRect(...) with correct rectangle is useless. I collected the needed rectangle from CXTPReportRow::GetRect() method. It's useless 'cos CXTPReportControl::OnPaint message handler will paint the control only when IsChanged method returns TRUE.

Why didn't you use CXTMemDC in OnPaint handler ? You don't use GetClipBox function while drawing the control. Why ?

Please correct me if I miss something or don't understand correctly. All I want is to update few records efficiently.

Best regards,

Haiku.

Back to Top
ICBM View Drop Down
Groupie
Groupie


Joined: 15 January 2004
Location: New Zealand
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote ICBM Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2004 at 2:17pm
I am interested in this also. Oleg, are you around ?
Back to Top
mhamsa View Drop Down
Newbie
Newbie


Joined: 15 December 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhamsa Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2004 at 12:32pm
Use the Populate method on the report control.
Back to Top
haiku View Drop Down
Newbie
Newbie


Joined: 30 November 2004
Location: Poland
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote haiku Quote  Post ReplyReply Direct Link To This Post Posted: 27 December 2004 at 2:21am

Dear mhamsa,

Are you completely sure this is the answer to my question ?

Best regards, Haiku.

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: 04 January 2005 at 6:01pm
Hi haiku,

I believe it is not possible to redraw a small piece of the control in the current version. However, during redraw it updates only visible part of the picture and uses picture caching in memory. Really, it seems to provide well enough performance. Any objections?

--
Regards,
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.172 seconds.