Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - BUG: Drag&drop from/to header rows
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Drag&drop from/to header rows

 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: BUG: Drag&drop from/to header rows
    Posted: 02 March 2008 at 2:14pm
wndReport.EnableDragDrop(xtpReportAllowDrop | xtpReportAllowDragMove);
GetHeaderRecords()->Add(new CMyRecord());
ShowHeaderRows(TRUE);
 
Now, if I drag items from my header to the rows below it, it looks like the drop is successful, but it is not. The problem, I think, is an old check in CXTPReportRecords::Move():
 
void CXTPReportRecords::Move(int nIndex, CXTPReportRecords* pRecords)
{
...
if (pRecord->m_pRecords != this)
    continue;
...
}
 
Please fix this! (In my case I want to disable dragging from and to the header rows.)
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.141 seconds.