<?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 : CMarkupTreeCtrl problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CMarkupTreeCtrl problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 22:09:02 +0000</pubDate>
  <lastBuildDate>Wed, 02 Sep 2009 03:01:06 +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=15070</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[CMarkupTreeCtrl problem : Yeah, but what happens if you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52667&amp;title=cmarkuptreectrl-problem#52667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 15070<br /><strong>Posted:</strong> 02 September 2009 at 3:01am<br /><br />Yeah, but what happens if you have a different font in the markup? Then the width will not match, right?<DIV>&nbsp;</DIV><DIV>In general, I think the native Windows tree control is a disaster :(</DIV>]]>
   </description>
   <pubDate>Wed, 02 Sep 2009 03:01:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52667&amp;title=cmarkuptreectrl-problem#52667</guid>
  </item> 
  <item>
   <title><![CDATA[CMarkupTreeCtrl problem : Hi,  yes its almost same as...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52592&amp;title=cmarkuptreectrl-problem#52592</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15070<br /><strong>Posted:</strong> 31 August 2009 at 8:07am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>yes its almost same as <a href="http://forum.codejock.com/forum_posts.asp?TID=14704&amp;KW=CMarkupTreeCtrl" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=14704</A></DIV>]]>
   </description>
   <pubDate>Mon, 31 Aug 2009 08:07:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52592&amp;title=cmarkuptreectrl-problem#52592</guid>
  </item> 
  <item>
   <title><![CDATA[CMarkupTreeCtrl problem : Solved it!        Replacing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52522&amp;title=cmarkuptreectrl-problem#52522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 15070<br /><strong>Posted:</strong> 28 August 2009 at 10:30am<br /><br />Solved it! <img src="http://forum.codejock.com/smileys/smiley16.gif" border="0"><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Replacing your "NULL" with the actual text of the item does the trick. Windows seems to calculate the widths upon the InsertItem call!</DIV><DIV>&nbsp;</DIV><DIV>---------------------------------------------------------------------------</DIV><DIV>CString GetInnerText(CXTPMarkupObject* pParent);</DIV><DIV>&nbsp;</DIV><DIV>HTREEITEM CMarkupTreeCtrl::AddItem(LPCTSTR lpszItem, int nImage, int nSelectedImage, HTREEITEM hParent/* = TVI_ROOT*/, HTREEITEM hInsertAfter/* = TVI_LAST*/)<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTPMarkupUIElement* pUIElement = Parse(lpszItem);<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; HTREEITEM hItem;</DIV><DIV>&nbsp;&nbsp;&nbsp; if (pUIElement)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hItem = InsertItem(<strong>GetInnerText(pUIElement)</strong>, nImage, nSelectedImage, hParent, hInsertAfter);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetItemData(hItem, (DWORD_PTR)pUIElement);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hItem = InsertItem(lpszItem, nImage, nSelectedImage, hParent, hInsertAfter);<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp; return hItem;<BR>}</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 10:30:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52522&amp;title=cmarkuptreectrl-problem#52522</guid>
  </item> 
  <item>
   <title><![CDATA[CMarkupTreeCtrl problem : XTP 13.1.  CMarkupTreeCtrl is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52518&amp;title=cmarkuptreectrl-problem#52518</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 15070<br /><strong>Posted:</strong> 28 August 2009 at 9:42am<br /><br />XTP 13.1.<DIV><FONT color=#010001 size=2><FONT color=#010001 size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2>CMarkupTreeCtrl is owner-drawn. This means the width of the items is not set (since Windows does not draw it) which leads to a missing horizontal scrollbar. The control is not wide enough to show my items, and I have to make sure the tree control becomes aware of this and then shows a properly scaled horizontal scrollbar.</FONT></FONT></DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2>I've searched the whole net. Can't find information about this (which is odd).</FONT></FONT></DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2>Any ideas?</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 09:42:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15070&amp;PID=52518&amp;title=cmarkuptreectrl-problem#52518</guid>
  </item> 
 </channel>
</rss>