Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - HOWTO: Resort  tree like report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOWTO: Resort tree like report control

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: HOWTO: Resort tree like report control
    Posted: 17 November 2009 at 11:33am
Hi;

In a tree like report control I sometimes change the item(s) display text by setting pItemMetrics->strText=...
This sometimes results in a no longer sorted tree.
So I implemented a sort command for the end user, but when I call CXTPReportControl.ReSort(), nothing happens, because the compare is done with the return value(s) og CXTPReportRecordItem::GetCaption().
This lead to my question: how to implement a sort function in this case, when the 'caption' changes in CXTPReportRecord::GetItemMetrics()?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.