Print Page | Close Window

XTP_NM_REPORT_DROP and drag cancel

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17597
Printed Date: 04 December 2024 at 2:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTP_NM_REPORT_DROP and drag cancel
Posted By: Mhutabor
Subject: XTP_NM_REPORT_DROP and drag cancel
Date 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!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net