Print Page | Close Window

CXTTreeCtrl MultiSelect

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=9195
Printed Date: 14 November 2025 at 8:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTreeCtrl MultiSelect
Posted By: Guybrush
Subject: CXTTreeCtrl MultiSelect
Date Posted: 29 December 2007 at 2:13pm
If I mark two or several Items and then press the ENTER key , the marked Items is deleted.
 
The Code is in CXTTreeBase::OnKeyDown(UINT nChar......)
 
if (!bCtrl && !bShift)
{
      UINT uCount = GetSelectedCount();
      if ((uCount > 1) || (uCount == 1 && !IsSelected(GetFocusedItem())))
             SelectAll(FALSE);
}
 
I would like to open the documents, which are connected with the Items (ItemData).
Why the marked Items deleted at to pressure the ENTER key??



Replies:
Posted By: Oleg
Date Posted: 02 January 2008 at 2:16am
Hi,
 
Please override tree and its OnKeyDown method, check VK_RETURN and don't call base method.
 
We will change it for next releases.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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