<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Give a Delphi TToolBar a Proper Themed Background</title>
	<atom:link href="http://www.brandonstaggs.com/2009/06/29/give-a-delphi-ttoolbar-a-proper-themed-background/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brandonstaggs.com/2009/06/29/give-a-delphi-ttoolbar-a-proper-themed-background/</link>
	<description>Software, Society, the Bible, Politics, and everything else.</description>
	<lastBuildDate>Wed, 28 Dec 2011 22:22:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: pcunite</title>
		<link>http://www.brandonstaggs.com/2009/06/29/give-a-delphi-ttoolbar-a-proper-themed-background/comment-page-1/#comment-6496</link>
		<dc:creator>pcunite</dc:creator>
		<pubDate>Thu, 01 Dec 2011 19:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonstaggs.com/?p=664#comment-6496</guid>
		<description>C++ Builder 2007 example

#include 

void __fastcall TForm1::ToolBar1_CustomDraw(TToolBar *Sender, const TRect &amp;ARect, bool &amp;DefaultDraw)
{
	TThemeServices * pTheme = new TThemeServices;
	TThemedElementDetails ElementDetails;
	RECT pRECT = Sender-&gt;ClientRect;
    pRECT.top = pRECT.top - GetSystemMetrics(SM_CYMENU);

    if(pTheme-&gt;ThemesEnabled == true)
    {
    	ElementDetails = pTheme-&gt;GetElementDetails(trRebarRoot);
		pTheme-&gt;DrawElement(Sender-&gt;Canvas-&gt;Handle, ElementDetails, pRECT);
	}
	delete pTheme;
}</description>
		<content:encoded><![CDATA[<p>C++ Builder 2007 example</p>
<p>#include </p>
<p>void __fastcall TForm1::ToolBar1_CustomDraw(TToolBar *Sender, const TRect &amp;ARect, bool &amp;DefaultDraw)<br />
{<br />
	TThemeServices * pTheme = new TThemeServices;<br />
	TThemedElementDetails ElementDetails;<br />
	RECT pRECT = Sender-&gt;ClientRect;<br />
    pRECT.top = pRECT.top &#8211; GetSystemMetrics(SM_CYMENU);</p>
<p>    if(pTheme-&gt;ThemesEnabled == true)<br />
    {<br />
    	ElementDetails = pTheme-&gt;GetElementDetails(trRebarRoot);<br />
		pTheme-&gt;DrawElement(Sender-&gt;Canvas-&gt;Handle, ElementDetails, pRECT);<br />
	}<br />
	delete pTheme;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://www.brandonstaggs.com/2009/06/29/give-a-delphi-ttoolbar-a-proper-themed-background/comment-page-1/#comment-5105</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Sun, 20 Feb 2011 23:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonstaggs.com/?p=664#comment-5105</guid>
		<description>Hi Very Cool, how could you do this with TPanel?</description>
		<content:encoded><![CDATA[<p>Hi Very Cool, how could you do this with TPanel?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.brandonstaggs.com/2009/06/29/give-a-delphi-ttoolbar-a-proper-themed-background/comment-page-1/#comment-3837</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonstaggs.com/?p=664#comment-3837</guid>
		<description>Thank you for your tutorial, it&#039;s really cool to improve my Delphi application like this!

THANKS!!!</description>
		<content:encoded><![CDATA[<p>Thank you for your tutorial, it&#8217;s really cool to improve my Delphi application like this!</p>
<p>THANKS!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

