Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - FindItem in CXTTreeBase not very useful
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FindItem in CXTTreeBase not very useful

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


Joined: 23 November 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote VAGB Quote  Post ReplyReply Direct Link To This Post Topic: FindItem in CXTTreeBase not very useful
    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".

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