<?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 : TreeCtrl &amp; EditC&#111;ntrol &amp; Acceleator Keya</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : TreeCtrl &amp; EditC&#111;ntrol &amp; Acceleator Keya]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 09:05:28 +0000</pubDate>
  <lastBuildDate>Tue, 12 Oct 2004 10:21:16 +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=1269</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[TreeCtrl &amp; EditC&#111;ntrol &amp; Acceleator Keya : The TreeCtrl don&amp;#039;t handle...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1269&amp;PID=3457&amp;title=treectrl-editcontrol-acceleator-keya#3457</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 1269<br /><strong>Posted:</strong> 12 October 2004 at 10:21am<br /><br />The TreeCtrl don't handle accelerator key.<br>If i was in the edit-control of the treectrl and press a accelerator key, no<br>accelerator message will received to the mainframe.<br><br>BOOL CXTTreeBase::PreTranslateMessage(MSG* pMsg) <br>{<br>&nbsp;&nbsp; &nbsp;if (pMsg-&gt;message == WM_KEYDOWN)<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// ensure that keystrokes are handled by the edit control.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (HasEditLabels() &amp;&amp; m_pTreeCtrl-&gt;GetEditControl())<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;::TranslateMessage(pMsg);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;::DispatchMessage(pMsg);<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return TRUE;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// toggle expand / contract when return key is hit.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (pMsg-&gt;wParam == VK_RETURN)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;HTREEITEM htItem = m_pTreeCtrl-&gt;GetSelectedItem();<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (htItem != NULL)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m_pTreeCtrl-&gt;Expand(htItem, TVE_TOGGLE);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;return m_pTreeCtrl-&gt;CTreeCtrl::PreTranslateMessage(pMsg);<br>}<br><br>]]>
   </description>
   <pubDate>Tue, 12 Oct 2004 10:21:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1269&amp;PID=3457&amp;title=treectrl-editcontrol-acceleator-keya#3457</guid>
  </item> 
 </channel>
</rss>