Print Page | Close Window

Multiselect and drag-and-drop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=585
Printed Date: 20 May 2024 at 12:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiselect and drag-and-drop
Posted By: Serge
Subject: Multiselect and drag-and-drop
Date Posted: 31 March 2004 at 7:08am

Hello All

I have the problem in CXTTreeCtrl. I want to implement the drag-and-drop for multiply selected items. The drag-and-drop for single item works fine, but when I call CXTTreeCtrl::EnableMultiSelect function, I begin receive OnBeginDrag notification even when I simple click on some item and then release the mouse button.

In order to demonstrate this behaviour I wrote the little application, attached to this question. Decommenting the "m_Tree.EnableMultiSelection()" line in CDemoDlg::OnInitDialog function starts all the problems.

I order to solve this problem I wrote my own handler for OnLButtonDown message, (so drag-and-drop of multiply items is working), but, as result, I don't receive OnLButtonUp message after simple click. This causes me additional problems.

I use XTreemTookit 1.9.2.2.

All ideas will be accepted with great thanks

Best regards

Serge https://forum.codejock.com/uploads/Serge/2004-03-31_070728_CTreeCtrl_with_Drag-and-Drop.zip - 2004-03-31_070728_CTreeCtrl_with_Drag-and-Drop.zip




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