Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - puzzle of  the "ReportSample"  demo
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

puzzle of the "ReportSample" demo

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


Joined: 02 November 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote heartofdra Quote  Post ReplyReply Direct Link To This Post Topic: puzzle of the "ReportSample" demo
    Posted: 07 November 2006 at 12:42am
 
 The "ReportSample"  demo :
 
    its "filter" function can change the rows dynamic .  But , I can't find the code(in my mind ,it is a function ) which response  this "filter" function ,  can you tell me your train of thoughts??
 
  thx !
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: 11 November 2006 at 9:40am
Hi,

External interface is simple -- you set a corresponding Filter string editing controland then it does all the job by itself:

GetReportCtrl().GetColumns()->GetReportHeader()->SetFilterEditCtrl(&m_wndFilterEdit);


If you'd like to see the current filter or to modify it, look at methods CXTPReportControl::SetFilterText and CXTPReportControl::GetFilterText.

And if you'd like to modify filtering functionality, then take a look at CXTPReportControl::ApplyFilter method. You can override it in your custom ReportControl - derived class and implement in any way you'd like.

--
WBR,
Serge
Back to Top
heartofdra View Drop Down
Newbie
Newbie


Joined: 02 November 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote heartofdra Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2006 at 3:03am
Thx
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.203 seconds.