<?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 : Onkeydown() event in CXTTreeBase</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Onkeydown() event in CXTTreeBase]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 04:17:13 +0000</pubDate>
  <lastBuildDate>Tue, 21 Oct 2008 10:55:41 +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=12345</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[Onkeydown() event in CXTTreeBase : It worked well!  Thank you Oleg,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12345&amp;PID=42206&amp;title=onkeydown-event-in-cxttreebase#42206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3020">abazosan</a><br /><strong>Subject:</strong> 12345<br /><strong>Posted:</strong> 21 October 2008 at 10:55am<br /><br />It worked well!<DIV>&nbsp;</DIV><DIV>Thank you Oleg, you are very good.</DIV>]]>
   </description>
   <pubDate>Tue, 21 Oct 2008 10:55:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12345&amp;PID=42206&amp;title=onkeydown-event-in-cxttreebase#42206</guid>
  </item> 
  <item>
   <title><![CDATA[Onkeydown() event in CXTTreeBase : Hi, Think you need TVN_SELCHANGED...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12345&amp;PID=41699&amp;title=onkeydown-event-in-cxttreebase#41699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12345<br /><strong>Posted:</strong> 07 October 2008 at 2:17am<br /><br /><P>Hi,</P><P><BR>Think you need TVN_SELCHANGED notification. User can select item with mouse also...</P>]]>
   </description>
   <pubDate>Tue, 07 Oct 2008 02:17:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12345&amp;PID=41699&amp;title=onkeydown-event-in-cxttreebase#41699</guid>
  </item> 
  <item>
   <title><![CDATA[Onkeydown() event in CXTTreeBase : Hi there,  I&amp;#039;ve got a CXTTree...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12345&amp;PID=41680&amp;title=onkeydown-event-in-cxttreebase#41680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3020">abazosan</a><br /><strong>Subject:</strong> 12345<br /><strong>Posted:</strong> 06 October 2008 at 11:27am<br /><br />Hi there,<DIV>&nbsp;</DIV><DIV>I've got a CXTTree based class. I capture the OnKeyDown() event and it works fine.</DIV><DIV>&nbsp;</DIV><DIV>When I navigate the tree with arrows up and down(even with SHIFT pressed), I capture the event, I get the list of selected items and refresh some information for all of them.</DIV><DIV>&nbsp;</DIV><DIV>But, when I try to navigate the tree with the first letter of an item (pressing character 'c' to go to car...and so), list of selected items is empty so I can't do anything with it. </DIV><DIV>&nbsp;</DIV><DIV>Is like the event launches after the selection of the&nbsp;next item with arrows, but before the selection of the next item with an alphanumeric character..</DIV><DIV>&nbsp;</DIV><DIV>Is this a bug or am I doing something wrong?</DIV><DIV>&nbsp;</DIV><DIV>This my code in OnKeyDown() method, if it helps</DIV><DIV><FONT size=2><FONT size=2><P>"<FONT color=#0000ff size=2>void</FONT><FONT size=2> CMyClassView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)</P><P>{</P></FONT><DIV>CXTTreeView</FONT>::OnKeyDown(nChar, nRepCnt, nFlags);</DIV><DIV>&nbsp;</DIV><DIV></FONT><FONT size=2>tSetLong setSelectedTags;</DIV><P></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> lFocusedTag= -</FONT><FONT color=#ff0000 size=2>1L</FONT><FONT size=2>;</P><P>CTreeCtrl &amp;rTree= GetTreeCtrl();</P><DIV></FONT><FONT size=2>CTypedPtrList&lt;CPtrList, HTREEITEM&gt; listItems;</DIV><P>GetSelectedList(listItems);</P></FONT><FONT size=2><P>POSITION pos= listItems.GetHeadPosition();</P><P></FONT><FONT color=#0000ff size=2>while</FONT><FONT size=2> (pos != NULL)</P><P>{</P><P>HTREEITEM hti= listItems.GetNext(pos);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (hti != NULL)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> lCode= rTree.GetItemData(hti);</P><P>setSelectedItems.insert(lCode);</P></FONT><FONT size=2><P>HTREEITEM hti= GetFocusedItem();</P></FONT><FONT size=2><P>TreeSelectionHasChanged(lFocusedTag);</P><P>}</P><DIV>}"</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 06 Oct 2008 11:27:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12345&amp;PID=41680&amp;title=onkeydown-event-in-cxttreebase#41680</guid>
  </item> 
 </channel>
</rss>