Drag & drop with virtual records |
Post Reply |
Author | |
Fredrik
Senior Member Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
Posted: 24 January 2023 at 3:49am |
Hi all, What's the trick handling drag & drop in a grid control having virtual records? I have added response handler for XTP_NM_GRID_BEGINDRAG but since I have virtual records I get the pointer to the same record regardless which one I drag. I could potentially use GetSelectedRows, but thought I should have the information needed in the XTP_NM_GRIDDRAGDROP structure. Second question, is it possible to prevent the start of a drag operation when responding to XTP_NM_GRIDDRAGDROP ? I have tried setting different values on *pResult and pItemNotify->bReturnValue. Third question: I tried to use XTP_NM_GRID_HASVALIDDROPTYPE message to change dropEffect, however, this is ignored in DROPEFFECT CXTPGridControl::OnDragOver?
Regards, Fredrik |
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |