<?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 : [Solved] CXTPMarkupTreeCtrl: how to modify markups</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : [Solved] CXTPMarkupTreeCtrl: how to modify markups]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 03:34:52 +0000</pubDate>
  <lastBuildDate>Mon, 22 Mar 2021 09:33:46 +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=24142</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[[Solved] CXTPMarkupTreeCtrl: how to modify markups : Wonderful.  It worked.Thank you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24142&amp;PID=78070&amp;title=solved-cxtpmarkuptreectrl-how-to-modify-markups#78070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9425">mstj</a><br /><strong>Subject:</strong> 24142<br /><strong>Posted:</strong> 22 March 2021 at 9:33am<br /><br /><div>Wonderful.&nbsp; <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" />&nbsp; It worked.</div><div>Thank you very much.</div>]]>
   </description>
   <pubDate>Mon, 22 Mar 2021 09:33:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24142&amp;PID=78070&amp;title=solved-cxtpmarkuptreectrl-how-to-modify-markups#78070</guid>
  </item> 
  <item>
   <title><![CDATA[[Solved] CXTPMarkupTreeCtrl: how to modify markups : What I usually do is set the name...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24142&amp;PID=78069&amp;title=solved-cxtpmarkuptreectrl-how-to-modify-markups#78069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9372">dbrookes</a><br /><strong>Subject:</strong> 24142<br /><strong>Posted:</strong> 21 March 2021 at 8:15pm<br /><br /><div>What I usually do is set the name attribute on your checkbox xaml. <br></div><div><br></div><div><font face="Courier New, Courier, mono">&lt;CheckBox IsThreeState='True' IsChecked='False' Name='my_checkbox'&gt;Something&lt;/CheckBox&gt;</font></div><div><br></div><div>That way you can use FindName on your parent UI element to get your checkbox.</div><div><br></div><div><font face="Courier New, Courier, mono">auto *pCheckBox = MARKUP_DYNAMICCAST(CXTPMarkupCheckBox, pUIElement-&gt;FindName(L"my_checkbox"));</font></div><div><br>These markup controls have a SetChecked function you can then call.</div><div><br></div><div>Hope that helps.<br></div>]]>
   </description>
   <pubDate>Sun, 21 Mar 2021 20:15:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24142&amp;PID=78069&amp;title=solved-cxtpmarkuptreectrl-how-to-modify-markups#78069</guid>
  </item> 
  <item>
   <title><![CDATA[[Solved] CXTPMarkupTreeCtrl: how to modify markups : Hello.I have a CXTPMarkupTreeCtrl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24142&amp;PID=78066&amp;title=solved-cxtpmarkuptreectrl-how-to-modify-markups#78066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9425">mstj</a><br /><strong>Subject:</strong> 24142<br /><strong>Posted:</strong> 19 March 2021 at 7:05pm<br /><br /><div>Hello.</div><div><br></div><div>I have a <font face="Courier New, Courier, mono">CXTPMarkupTreeCtrl </font>in which each branch is a checkbox markup.</div><div><br></div><div><font face="Courier New, Courier, mono">&lt;CheckBox IsThreeState='True' IsChecked='False'&gt;Something&lt;/CheckBox&gt;</font></div><div><br><font face="Courier New, Courier, mono"> <font face="Verdana, Arial, Helvetica, sans-serif">How can I set this control to a "Checked" state simply in code, without any mouse or keyboard intervention?<br></font></font></div><div><br></div><div>--- What I know so far ...<br></div><div>I know that I can get a <font face="Courier New, Courier, mono">CXTPMarkupUIElement </font>that is stored as an item data on each HTREEITEM like so:<br></div><div><br></div><div><font face="Courier New, Courier, mono">CXTPMarkupUIElement* pUIElement = reinterpret_cast&lt;CXTPMarkupUIElement*&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetItemData(hItem));</font><br></div><div><br></div><div>but that doesn't help me set new states for the control unless I find a way to transform that data into a <font face="Courier New, Courier, mono">CXTPMarkupCheckBox </font>which I know is possible in response to markup handlers like <font face="Courier New, Courier, mono">CXTPMarkupCheckBox::m_pClickEvent</font>, etc ...).&nbsp; But I don't know how to randomly change a state with code.</div><div><br></div><div>Any help appreciated.<br></div>]]>
   </description>
   <pubDate>Fri, 19 Mar 2021 19:05:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24142&amp;PID=78066&amp;title=solved-cxtpmarkuptreectrl-how-to-modify-markups#78066</guid>
  </item> 
 </channel>
</rss>