Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - XTP_NM_REPORT_DROP and drag cancel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTP_NM_REPORT_DROP and drag cancel

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


Joined: 12 January 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mhutabor Quote  Post ReplyReply Direct Link To This Post Topic: XTP_NM_REPORT_DROP and drag cancel
    Posted: 24 November 2010 at 4:52am
Hello!

I have a question about cancelling grag in XTP_NM_REPORT_DROP handler.

void CClass::OnReportItemDrop(NMHDR* pNMHDR, LRESULT* pResult)
{
    *pResult = 0;
    XTP_NM_REPORTDRAGDROP* pItemNotify = (XTP_NM_REPORTDRAGDROP*)pNMHDR;


    if(pItemNotify->pRecords->GetCount())
    {
            pItemNotify->pRecords->RemoveAt(0); // not working because of ASSERT(!m_bArray) in xtpreportrecord.cpp
    }
//but next is working and prevent all items from being dragged
    pItemNotify->pRecords->RemoveAll();

}

And the question is: can i cancel drag of certain items?
Thanks!

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.109 seconds.