Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Design-flaw: CXTPReportControl::OnBeginDrag
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Design-flaw: CXTPReportControl::OnBeginDrag

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Design-flaw: CXTPReportControl::OnBeginDrag
    Posted: 02 March 2008 at 7:05am
Consider the code in CXTPReportControl::OnBeginDrag:
 
for (int i = nCount - 1; i >= 0; i--)
{
    CXTPReportRow* pRow = pSelectedRows->GetAt(i);
    if (pRow->IsGroupRow())
    {
        pRow->SetExpanded(TRUE);
        pRow->SelectChilds();
    }
}
 
What if I do not want my group rows to expand when dragging? This should be customizable. As it is now, I have to replace the whole function in my report control. Not good
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.