<?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 : CXTTreeCtrl mutli selection problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTTreeCtrl mutli selection problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 21:31:48 +0000</pubDate>
  <lastBuildDate>Wed, 16 Jan 2008 05:27:53 +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=7826</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[CXTTreeCtrl mutli selection problems : Thank you.  I have found a similar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=30167&amp;title=cxttreectrl-mutli-selection-problems#30167</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=517">Alex</a><br /><strong>Subject:</strong> 7826<br /><strong>Posted:</strong> 16 January 2008 at 5:27am<br /><br />Thank you.<DIV>&nbsp;</DIV><DIV>I have found a similar solution.</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>Alex</DIV>]]>
   </description>
   <pubDate>Wed, 16 Jan 2008 05:27:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=30167&amp;title=cxttreectrl-mutli-selection-problems#30167</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeCtrl mutli selection problems : Hi,I did find a way to get around...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=30155&amp;title=cxttreectrl-mutli-selection-problems#30155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2432">scottp</a><br /><strong>Subject:</strong> 7826<br /><strong>Posted:</strong> 15 January 2008 at 9:01pm<br /><br />Hi,<br><br>I did find a way to get around this by filtering out focus changes in OnSelectionChange.<br><br><font face="Courier New, Courier, mono">BOOL CMyTreeCtrl::OnSelectionChange (NMHDR* pNMHDR, LRESULT* pResult)<br>&nbsp; {<br>&nbsp; NMTREEVIEW* pTv;<br>&nbsp; pTv = (NMTREEVIEW*)pNMHDR;<br>&nbsp; *pResult = 0;<br><br>&nbsp; HTREEITEM hFocusedItem = GetFocusedItem ();<br>&nbsp; HTREEITEM hNewItem = pTv-&gt;itemNew.hItem;<br>&nbsp; HTREEITEM hOldItem = pTv-&gt;itemOld.hItem;<br>&nbsp; if ( !hFocusedItem &amp;&amp; hOldItem &amp;&amp; !hNewItem )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; // then me must have a Focus change and we don't want to process this as a selection change.<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; else<br>&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp; if (hNewItem)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMyTreeItem* pData = GetMyTreeItem (hNewItem);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //select item<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if (hOldItem)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMyTreeItem* pData = GetMyTreeItem (hOldItem);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // deselect item<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br><font face="Arial, Helvetica, sans-serif">Hope this helps</font><br></font><br>]]>
   </description>
   <pubDate>Tue, 15 Jan 2008 21:01:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=30155&amp;title=cxttreectrl-mutli-selection-problems#30155</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeCtrl mutli selection problems : Hi,  could you solve this problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=30063&amp;title=cxttreectrl-mutli-selection-problems#30063</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=517">Alex</a><br /><strong>Subject:</strong> 7826<br /><strong>Posted:</strong> 11 January 2008 at 5:26pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>could you solve this problem ?</DIV><DIV>&nbsp;</DIV><DIV>I have the same problem...</DIV><DIV>&nbsp;</DIV><DIV>Regards.</DIV><DIV>Alex</DIV>]]>
   </description>
   <pubDate>Fri, 11 Jan 2008 17:26:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=30063&amp;title=cxttreectrl-mutli-selection-problems#30063</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTreeCtrl mutli selection problems : We are using the CXTTreeCtrl in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=25218&amp;title=cxttreectrl-mutli-selection-problems#25218</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2432">scottp</a><br /><strong>Subject:</strong> 7826<br /><strong>Posted:</strong> 17 August 2007 at 10:24am<br /><br />We are using the CXTTreeCtrl in multi-select mode and have found that tracking the items being selected and deselected using the TVN_SELCHANGED message does not work when selecting multiple items using CTRL and SHIFT. The visual appearance of the trees selection is correct but it is impossible to track the changes.<br><br>I have attached a modified TreeCtrl sample that helps show the problem (use the multiselect tree) - message boxes will popup to show which items are being selected and deselected.<br><br><a href="uploads/20070817_102009_TreeCtrl_Sample.zip" target="_blank">uploads/20070817_102009_TreeCtrl_Sample.zip</a><br><br>Test scenario 1:<br><ol><li>Select item 1<br></li><ol><li>notified that item 1 is selected</li></ol><li>CTRL select item 2 <br></li><ol><li>notified that item 1 is deselected</li><li>notified that item 2 is selected</li></ol></ol>Test scenario 2:<br><ol><li>Select item 1<br></li><ol><li>notified that item 1 is selected</li></ol><li>SHIFT select item 3</li><ol><li>notified that item 1 is deselected</li><li>notified that item 2,3 are selected</li></ol></ol>Both Vista and XP show similar behaviour (although on Vista the tree seems to send more TVN_SELCHANGED notifications).<br><br><br><br><br>]]>
   </description>
   <pubDate>Fri, 17 Aug 2007 10:24:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7826&amp;PID=25218&amp;title=cxttreectrl-mutli-selection-problems#25218</guid>
  </item> 
 </channel>
</rss>