<?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 : Tri State CheckBox TreeCtrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Tri State CheckBox TreeCtrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 00:14:11 +0000</pubDate>
  <lastBuildDate>Wed, 20 Feb 2008 09:06:57 +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=9564</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[Tri State CheckBox TreeCtrl :   jimmy wrote:Is there a way...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31377&amp;title=tri-state-checkbox-treectrl#31377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 9564<br /><strong>Posted:</strong> 20 February 2008 at 9:06am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jimmy" alt="Originally posted by jimmy" style="vertical-align: text-bottom;" /> <strong>jimmy wrote:</strong><br /><br />Is there a way to add a Tri State Checkbox to the CXTTreeCtrl ?</td></tr></table> <DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>The MFC TreeCtrl sample demonstrates how to use a tri-state tree control. Run the sample, you will see the tri-state tree control on the right side of the dialog. </DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080220_091036_TreeCtrlSample.png" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Open the project and look at the "<FONT color=#0000ff>CStateTreeCtrl</FONT><FONT color=#000000>" class, hope this helps.</FONT></DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV>]]>
   </description>
   <pubDate>Wed, 20 Feb 2008 09:06:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31377&amp;title=tri-state-checkbox-treectrl#31377</guid>
  </item> 
  <item>
   <title><![CDATA[Tri State CheckBox TreeCtrl : Hi,  First add own STATE image...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31368&amp;title=tri-state-checkbox-treectrl#31368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 9564<br /><strong>Posted:</strong> 20 February 2008 at 4:49am<br /><br />Hi,<br><br>First add own STATE image list<br>&nbsp;&nbsp;&nbsp; m_imageState.Create( 16, 15, ILC_COLOR32 | ILC_MASK, 0, 1);<br>&nbsp;&nbsp;&nbsp; CBitmap bmp;<br>&nbsp;&nbsp;&nbsp; bmp.LoadBitmap(IDB_TRI_STATE_TREE);<br>&nbsp;&nbsp;&nbsp; m_imageState.Add(&amp;bmp, RGB(0,255,255));<br>&nbsp;&nbsp;&nbsp; SetImageList( &amp;m_imageState, TVSIL_STATE );<br><br>int CTriStateTreeCtrl::GetCheck(HTREEITEM hItem) const<br>{<br>&nbsp;&nbsp;&nbsp; return (GetItemState( hItem, TVIS_STATEIMAGEMASK )&gt;&gt;12) - 1;<br>}<br><br>void CTriStateTreeCtrl::SetCheck(HTREEITEM hItem, int iState)<br>{<br>&nbsp;&nbsp;&nbsp; SetItemState( hItem, INDEXTOSTATEIMAGEMASK(iState+1), TVIS_STATEIMAGEMASK );<br>&nbsp;&nbsp;&nbsp; RedrawItem(hItem);<br>&nbsp;&nbsp;&nbsp; // TRACE("SetCheck=%u\n", iState);<br>}<br><br>Bitmap: width = x*16Pixel, height = 15Pixel.<br>1.icon not used, 2. uncheck, 3.checked, 4.TriState, and other ....<br>Sorry Codejock does not allowed upload bitmap at this time.<br><br>Also must catch LButtonDown &amp; check TVHT_ONITEMSTATEICON<br>to toggle Check state.<br>Don't forget to catch KEYDOWN-Space to toggle Check state.<br><br><a href="uploads/20080220_054307_Test_TriStateTr.zip" target="_blank">uploads/20080220_054307_Test_TriStateTr.zip</a><br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Wed, 20 Feb 2008 04:49:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31368&amp;title=tri-state-checkbox-treectrl#31368</guid>
  </item> 
  <item>
   <title><![CDATA[Tri State CheckBox TreeCtrl :    jimmy wrote:Have found a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31351&amp;title=tri-state-checkbox-treectrl#31351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3767">theflavor</a><br /><strong>Subject:</strong> 9564<br /><strong>Posted:</strong> 19 February 2008 at 5:39pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jimmy" alt="Originally posted by jimmy" style="vertical-align: text-bottom;" /> <strong>jimmy wrote:</strong><br /><br />Have found a solution with standard CTreeCtrl<br><br>&nbsp; Jimmy<br><br></td></tr></table><br><br>How were you able to solve this?<br>]]>
   </description>
   <pubDate>Tue, 19 Feb 2008 17:39:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31351&amp;title=tri-state-checkbox-treectrl#31351</guid>
  </item> 
  <item>
   <title><![CDATA[Tri State CheckBox TreeCtrl : Have found a solution with standard...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31092&amp;title=tri-state-checkbox-treectrl#31092</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 9564<br /><strong>Posted:</strong> 12 February 2008 at 8:15am<br /><br />Have found a solution with standard CTreeCtrl<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Tue, 12 Feb 2008 08:15:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31092&amp;title=tri-state-checkbox-treectrl#31092</guid>
  </item> 
  <item>
   <title><![CDATA[Tri State CheckBox TreeCtrl : Hello,Is there a way to add a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31082&amp;title=tri-state-checkbox-treectrl#31082</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 9564<br /><strong>Posted:</strong> 12 February 2008 at 6:26am<br /><br />Hello,<br><br>Is there a way to add a Tri State Checkbox to the CXTTreeCtrl ?<br>I also need a normal image.<br>i use 11.1.3.<br><br>I known its work with Markup ext. on version 12.0.0.<br>But we can't wait.<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Tue, 12 Feb 2008 06:26:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9564&amp;PID=31082&amp;title=tri-state-checkbox-treectrl#31082</guid>
  </item> 
 </channel>
</rss>