<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code Library &#187; CTreeView</title>
	<atom:link href="http://www.ucosoft.com/tag/ctreeview/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ucosoft.com</link>
	<description>Free Source Code and Program Tips</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:17:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to hilight an item in CTreeCtrl/CTreeView</title>
		<link>http://www.ucosoft.com/how-to-hilight-an-item-in-ctreectrlctreeview.html</link>
		<comments>http://www.ucosoft.com/how-to-hilight-an-item-in-ctreectrlctreeview.html#comments</comments>
		<pubDate>Thu, 25 Oct 2007 03:28:01 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[Win32/MFC]]></category>
		<category><![CDATA[CTreeCtrl]]></category>
		<category><![CDATA[CTreeView]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/2007/10/25/how-to-hilight-an-item-in-ctreectrlctreeview.html</guid>
		<description><![CDATA[How to hilight or bold an item in CTreeCtrl/CTreeView? There is no real difference between CTreeCtrl and CTreeView. You need to use an owner draw tree control. Takeover the NM_CUSTOMDRAW message, and it will allow you to change the font, brush, etc. of each individual item. You don&#8217;t need to do any owner draw if [...]]]></description>
			<content:encoded><![CDATA[<p>How to hilight or bold an item in CTreeCtrl/CTreeView?</p>
<p>There is no real difference between CTreeCtrl and CTreeView. You need to use an owner draw tree control. </p>
<p> Takeover the NM_CUSTOMDRAW message, and it will allow you to change the font, brush, etc. of each individual item. You don&#8217;t need to do any owner draw if you use customdraw.</p>
<p>The following articles wil save you plenty of work.
<ul>
<li><a href="http://www.codeproject.com/treectrl/#Custom+Tree+Controls">http://www.codeproject.com/treectrl/#Custom+Tree+Controls</a></li>
<li><a href="http://www.codeproject.com/treectrl/colortreectrl.asp">http://www.codeproject.com/treectrl/colortreectrl.asp</a></li>
</ul>

	Tags: <strong><a href="http://www.ucosoft.com/tag/ctreectrl" title="CTreeCtrl" rel="tag">CTreeCtrl</a>, <a href="http://www.ucosoft.com/tag/ctreeview" title="CTreeView" rel="tag">CTreeView</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/how-to-hilight-an-item-in-ctreectrlctreeview.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to subclass CTreeCtrl in CTreeView?</title>
		<link>http://www.ucosoft.com/how-to-subclass-ctreectrl-in-ctreeview.html</link>
		<comments>http://www.ucosoft.com/how-to-subclass-ctreectrl-in-ctreeview.html#comments</comments>
		<pubDate>Thu, 25 Oct 2007 03:16:23 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[Win32/MFC]]></category>
		<category><![CDATA[CTreeCtrl]]></category>
		<category><![CDATA[CTreeView]]></category>
		<category><![CDATA[CView]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Subclass]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/2007/10/25/how-to-subclass-ctreectrl-in-ctreeview.html</guid>
		<description><![CDATA[Another title: How to use a derived CTreeCtrl in a CTreeView? It is similar with this article: &#8220;How to use an derived CListCtrl in CListView&#8221; or &#8220;How do I subclass the CListCtrl part of a CListView Class?&#8220;. Just like CListView, there is no CTreeCtrl to subclass in CTreeView. The CTreeView is the subclass of the [...]]]></description>
			<content:encoded><![CDATA[<p>Another title:</p>
<p><strong>How to use a derived CTreeCtrl in a CTreeView?</strong></p>
<p>It is similar with this article: &#8220;<a href="http://www.ucosoft.com/2007/10/22/how-to-use-an-derived-clistctrl-in-clistview.html">How to use an derived CListCtrl in CListView</a>&#8221; or &#8220;<a href="http://www.ucosoft.com/2007/10/22/how-do-i-subclass-the-clistctrl-part-of-a-clistview-class.html">How do I subclass the CListCtrl part of a CListView Class?</a>&#8220;.</p>
<p>Just like CListView, there is no CTreeCtrl to subclass in CTreeView. The CTreeView is the subclass of the WC_TREEVIEW common control. If you need some extra feature in the CTreeView, the best way is like the method mentioned in the previous two articles:</p>
<p>Forget CTreeView and derive your own view CMyView from CView, and bond your CMyTreeCtrl in the view. Now you got the full control of the tree.</p>
<p>These two articles may be helpful to you:&nbsp;
<ul>
<li><a href="http://www.codeguru.com/doc_view/custom_view.shtml">http://www.codeguru.com/doc_view/custom_view.shtml</a> </li>
<li><a href="http://www.codeguru.com/doc_view/Control2View.shtml">http://www.codeguru.com/doc_view/Control2View.shtml</a> </li>
</ul>

	Tags: <strong><a href="http://www.ucosoft.com/tag/ctreectrl" title="CTreeCtrl" rel="tag">CTreeCtrl</a>, <a href="http://www.ucosoft.com/tag/ctreeview" title="CTreeView" rel="tag">CTreeView</a>, <a href="http://www.ucosoft.com/tag/cview" title="CView" rel="tag">CView</a>, <a href="http://www.ucosoft.com/tag/how-to" title="How-to" rel="tag">How-to</a>, <a href="http://www.ucosoft.com/tag/subclass" title="Subclass" rel="tag">Subclass</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/how-to-subclass-ctreectrl-in-ctreeview.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

