<?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 : Giving multi-select tree focus loses selection</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Giving multi-select tree focus loses selection]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:39:36 +0000</pubDate>
  <lastBuildDate>Thu, 30 Jan 2014 08:20: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=22184</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[Giving multi-select tree focus loses selection : Hi, I&amp;#039;m trying to work out...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22184&amp;PID=72220&amp;title=giving-multiselect-tree-focus-loses-selection#72220</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8640">Norbini</a><br /><strong>Subject:</strong> 22184<br /><strong>Posted:</strong> 30 January 2014 at 8:20am<br /><br />Hi,<div><br></div><div>&nbsp; I'm trying to work out if the Toolkit Pro Controls (for MFC) CXTPTreeCtrl is a suitable replacement for a home-grown multi-select tree control that isn't working correctly. My app runs on Windows 7 and XP.</div><div><br></div><div>&nbsp; In my application, it is normal for the tree control to lose focus as the user interacts with other controls in a window. However, I'm finding that with the CXTPTreeCtrl, when the user clicks to give focus back to the tree, any previous multiple selection is lost and only a single item will then be selected. This happens when clicking on either a blank area under all tree items (if available), or to the right of any tree item labels. It can be avoided only by clicking on a very thin (1 pixel?) border around the entire control - this is much too tricky to expect the user to do.</div><div>&nbsp; The problem is made slightly worse on Windows 7 because the grey colour used for selected items when the control has lost focus (when TVS_SHOWSELALWAYS is enabled) is very faint, and so is almost invisible, making it look like no items are selected when the tree control does not have focus.</div><div><br></div><div>&nbsp; I'm wondering if there is a way to:</div><div>&nbsp; &nbsp; a) Change the colour of the highlight when the control has lost focus. This way is might be more obvious to the user that they might change the selection when clicking.</div><div>&nbsp; &nbsp; b) Prevent clicks on the background of the tree control from losing the selection (at least when giving focus back to the control).</div><div><br></div><div>&nbsp; Any help on these matters would be very much appreciated.</div><div><br></div><div>&nbsp; Many thanks in advance,</div><div>&nbsp; &nbsp; -Nige</div>]]>
   </description>
   <pubDate>Thu, 30 Jan 2014 08:20:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22184&amp;PID=72220&amp;title=giving-multiselect-tree-focus-loses-selection#72220</guid>
  </item> 
 </channel>
</rss>