Print Page | Close Window

FindItem in CXTTreeBase not very useful

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


Topic: FindItem in CXTTreeBase not very useful
Posted By: VAGB
Subject: FindItem in CXTTreeBase not very useful
Date Posted: 03 April 2006 at 10:26am

I have noticed that normal behaviour of the function CXTTreeBase::FindItem is not very useful as it only finds if the text given is included into any itemīs text. So, you can have an item labeld "Text in" and when you use that function to look for the string "Text", it returns the first related item as the word "Text" is completely inside "Text in".

I need to detect if there is any item in the tree with a particular label and I need a full comprobation over the text, not only if it is included. For me, the strings "ODBC Drivers" and "ODBC", for example, are different, so for my purposes, FindItem using "ODBC" must return NULL, not the HTREEITEM of "ODBC Drivers".




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