<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTTreeBase::FindItem  method usage</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTTreeBase::FindItem  method usage]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 18:27:37 +0000</pubDate>
  <lastBuildDate>Wed, 26 Mar 2008 16:49:42 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=9950</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Hi, Olegthis fix seems to have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32612&amp;title=cxttreebasefinditem-method-usage#32612</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 26 March 2008 at 4:49pm<br /><br />Hi, Oleg<br><br>this fix seems to have solved the problem. I made some initial tests and it looks good <img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><br>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 16:49:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32612&amp;title=cxttreebasefinditem-method-usage#32612</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Hi,  Yes. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32584&amp;title=cxttreebasefinditem-method-usage#32584</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 26 March 2008 at 5:14am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes.</DIV>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 05:14:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32584&amp;title=cxttreebasefinditem-method-usage#32584</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Hi Oleg;  will this fix also...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32577&amp;title=cxttreebasefinditem-method-usage#32577</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 26 March 2008 at 4:02am<br /><br />Hi Oleg;<DIV>&nbsp;</DIV><DIV>will this fix also be applied in 12.0 final?</DIV>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 04:02:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32577&amp;title=cxttreebasefinditem-method-usage#32577</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Him  Please replace GetLastItem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32573&amp;title=cxttreebasefinditem-method-usage#32573</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 26 March 2008 at 12:58am<br /><br />Him<DIV>&nbsp;</DIV><DIV>Please replace GetLastItem method as</DIV><DIV>&nbsp;</DIV><DIV><BR>HTREEITEM CXTTreeBase::GetLastItem(HTREEITEM hItem) const<BR>{<BR>&nbsp;// Temporary used variable<BR>&nbsp;HTREEITEM htiNext;</DIV><DIV>&nbsp;// Get the last item at the top level<BR>&nbsp;if (hItem == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;hItem = m_pTreeCtrl-&gt;GetRootItem();</DIV><DIV>&nbsp;&nbsp;htiNext = m_pTreeCtrl-&gt;GetNextSiblingItem(hItem);<BR>&nbsp;&nbsp;while (htiNext != NULL)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;hItem = htiNext;<BR>&nbsp;&nbsp;&nbsp;htiNext = m_pTreeCtrl-&gt;GetNextSiblingItem(htiNext);<BR>&nbsp;&nbsp;}<BR>&nbsp;}</DIV><DIV>&nbsp;while (m_pTreeCtrl-&gt;ItemHasChildren(hItem) != NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;// Find the last child of hItem<BR>&nbsp;&nbsp;htiNext = m_pTreeCtrl-&gt;GetChildItem(hItem);<BR>&nbsp;&nbsp;while (htiNext != NULL)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;hItem = htiNext;<BR>&nbsp;&nbsp;&nbsp;htiNext = m_pTreeCtrl-&gt;GetNextSiblingItem(htiNext);<BR>&nbsp;&nbsp;}<BR>&nbsp;}</DIV><DIV>&nbsp;return hItem;</DIV><DIV>}<BR></DIV>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 00:58:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32573&amp;title=cxttreebasefinditem-method-usage#32573</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Hi; In my case I only needed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32563&amp;title=cxttreebasefinditem-method-usage#32563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 25 March 2008 at 4:02pm<br /><br />Hi;<DIV>In my case I only needed forward only search capabilities, but I think it's a good starting point for your requirements. Just call GetPrevItem() if a search with the start item got by GetNextItem() gives no result; voila!</DIV>]]>
   </description>
   <pubDate>Tue, 25 Mar 2008 16:02:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32563&amp;title=cxttreebasefinditem-method-usage#32563</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Thanks for helping outUnfortunately,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32559&amp;title=cxttreebasefinditem-method-usage#32559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 25 March 2008 at 12:17pm<br /><br />Thanks for helping out&nbsp;<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"><br><br>Unfortunately, it seems that your method does not find all possible matches when a sub-item is selected, and the sibling item above also has a sub-item which would cause a match, like in the attached screen shot.<br>I start with the orange node, searching upwards for the sub-term "ba".<br><br>.<img src="uploads/20080325_121659_Image1.jpg" height="159" width="198" border="0"><br>]]>
   </description>
   <pubDate>Tue, 25 Mar 2008 12:17:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32559&amp;title=cxttreebasefinditem-method-usage#32559</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Yes, in this case. The contents...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32558&amp;title=cxttreebasefinditem-method-usage#32558</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 25 March 2008 at 12:05pm<br /><br />Yes, in this case. The contents of the tree are flexible, and there may be several root items.]]>
   </description>
   <pubDate>Tue, 25 Mar 2008 12:05:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32558&amp;title=cxttreebasefinditem-method-usage#32558</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Hi;  I use this part of code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32541&amp;title=cxttreebasefinditem-method-usage#32541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 25 March 2008 at 4:23am<br /><br />Hi; <DIV>I use this part of code if I want to search for items in a tree. It works very well and I don't have troubles with find and or find next.</DIV><DIV>In my case I use find/find next with the same toolbar button:</DIV><DIV>&nbsp;</DIV><DIV>void CPVBar::OnSearch(NMHDR* pNMHDR, LRESULT* pResult)<BR>{<BR>&nbsp;&nbsp;CString strFind = pMyControl_-&gt;GetEditText();<BR>&nbsp;&nbsp;HTREEITEM hItem=0;<BR>&nbsp;&nbsp;if ((hItem=MyTree_.GetSelectedItem())==0)<BR>&nbsp;&nbsp;&nbsp;hItem=MyTree_.GetRootItem();<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;hItem=MyTree_.GetNextItem(hItem);</DIV><DIV>&nbsp;&nbsp;if ((hItem=MyTree_.FindItem(strFind, FALSE, TRUE, FALSE, hItem))!=0)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;VERIFY(MyTree_.SelectItem(hItem));<BR>&nbsp;&nbsp;&nbsp;MyTree_.EnsureVisible(hItem);<BR>&nbsp;&nbsp;&nbsp;MyTree_.SetItemBold(hItem);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;*pResult = 1; // Handled;<BR>&nbsp;}<BR>}</DIV>]]>
   </description>
   <pubDate>Tue, 25 Mar 2008 04:23:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32541&amp;title=cxttreebasefinditem-method-usage#32541</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Hello,   Yes, seems there is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32528&amp;title=cxttreebasefinditem-method-usage#32528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 24 March 2008 at 2:14pm<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>Yes, seems there is bug if&nbsp; there are 2 or more root items. :(</DIV><DIV>&nbsp;</DIV><DIV>Do you have one root item ?</DIV>]]>
   </description>
   <pubDate>Mon, 24 Mar 2008 14:14:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32528&amp;title=cxttreebasefinditem-method-usage#32528</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeBase::FindItem  method usage : Hi,I have a reproducible bug where...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32518&amp;title=cxttreebasefinditem-method-usage#32518</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 9950<br /><strong>Posted:</strong> 24 March 2008 at 11:36am<br /><br />Hi,<br><br>I have a reproducible bug where calling FindItem with bDownDir = FALSE causes an endless loop within the FindItem method. The search never terminates and I need to force my application to close.<br><br>My tree contains one node with the search text. I select this entry, and then call FindItem with the direction upwards. FindItem never finds the entry, but instead falls into a loop.<br><br>]]>
   </description>
   <pubDate>Mon, 24 Mar 2008 11:36:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9950&amp;PID=32518&amp;title=cxttreebasefinditem-method-usage#32518</guid>
  </item> 
 </channel>
</rss>