<?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>Visual C++ Tips &#187; vista themes to dialog</title>
	<atom:link href="http://weseetips.com/tag/vista-themes-to-dialog/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to Enable XP/Vista themes in your Dialog?</title>
		<link>http://weseetips.com/2008/12/30/how-to-enable-xpvista-themes-in-your-dialog/</link>
		<comments>http://weseetips.com/2008/12/30/how-to-enable-xpvista-themes-in-your-dialog/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 21:12:50 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[add xp theme]]></category>
		<category><![CDATA[adding custom resource]]></category>
		<category><![CDATA[application manifest]]></category>
		<category><![CDATA[custom resource]]></category>
		<category><![CDATA[dialog manifest]]></category>
		<category><![CDATA[manifest file]]></category>
		<category><![CDATA[vista look and feel]]></category>
		<category><![CDATA[vista theme]]></category>
		<category><![CDATA[vista themes to application]]></category>
		<category><![CDATA[vista themes to dialog]]></category>
		<category><![CDATA[xp look and feel]]></category>
		<category><![CDATA[xp theme]]></category>
		<category><![CDATA[xp theme to dialog]]></category>
		<category><![CDATA[xp themes to dialog]]></category>
		<category><![CDATA[xp themese in your appliaction]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=774</guid>
		<description><![CDATA[From Windows XP onwards, the basic control look and feel have improved drastically. Previously, they were merely flat style controls without any effects- the maximum you can do is to change the control color and mouse cursor icon( I hope you do remember the Jungle Theme of those old win98 days). In Vista its even [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.wordpress.com/files/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
<span style="color:#0000ff;">From Windows XP onwards, the basic control look and feel have improved drastically.</span> Previously, they were merely flat style controls without any effects- the maximum you can do is to change the control color and mouse cursor icon( I hope you do remember the Jungle Theme of those old win98 days). In Vista its even more stylish. <span style="color:#0000ff;">But is it possible to give the same look &amp; feel effects to our applications as well?</span></p>
<p><img class="alignnone size-full wp-image-784" title="xp_themes" src="http://weseetips.wordpress.com/files/2008/12/xp_themes.jpg" alt="xp_themes" width="500" height="360" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.wordpress.com/files/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
Yes. You can. You just have to <span style="color:#0000ff;">add a manifest file to your application.</span> Well follow the detailed steps about how to do it. Well, we are going to apply Vista look and feel to the following dialog. <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-783" title="xp_theme_7" src="http://weseetips.wordpress.com/files/2008/12/xp_theme_7.jpg" alt="xp_theme_7" width="333" height="202" /></p>
<p>1) The manifest format is specified below. <span style="color:#0000ff;">Copy it to notepad</span> and change the &#8220;<span style="text-decoration:underline;"><strong>ExeName</strong></span>&#8221; to the name of your application. For instance if your exename is Rabbit.exe, then &#8220;<span style="text-decoration:underline;"><strong>ExeName</strong></span>&#8221; is &#8220;Rabbit&#8221;.</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&gt;
&lt;assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="<span style="text-decoration:underline;"><strong>ExeName</strong></span>"
    type="win32"
/&gt;
&lt;description&gt;Application Description&lt;/description&gt;
&lt;dependency&gt;
    &lt;dependentAssembly&gt;
        &lt;assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="X86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        /&gt;
    &lt;/dependentAssembly&gt;
&lt;/dependency&gt;
&lt;/assembly&gt;</pre>
<p>2) Now<span style="color:#0000ff;"> insert a new resource</span>.</p>
<p><img class="alignnone size-full wp-image-777" title="xp_theme_1" src="http://weseetips.wordpress.com/files/2008/12/xp_theme_1.jpg" alt="xp_theme_1" width="510" height="387" /><br />
3) Now <span style="color:#0000ff;">add a new Custom Resource</span> with <span style="color:#0000ff;">Resource ID as <strong>24</strong></span>.</p>
<p><img class="alignnone size-full wp-image-778" title="xp_theme_2" src="http://weseetips.wordpress.com/files/2008/12/xp_theme_2.jpg" alt="xp_theme_2" width="376" height="300" /></p>
<p>4) Now <span style="color:#0000ff;">copy-paste the manifest contents</span> to new resource and save it. Make sure you&#8217;ve changed the &#8220;<span style="text-decoration:underline;"><strong>ExeName</strong></span>&#8221; to your application name.</p>
<p><img class="alignnone size-full wp-image-779" title="xp_theme_3" src="http://weseetips.wordpress.com/files/2008/12/xp_theme_3.jpg" alt="xp_theme_3" width="510" height="382" /></p>
<p>5) Now <span style="color:#0000ff;">take the properties</span> of our new resource &#8211;  &#8220;IDR_DEFAULT1&#8243;.</p>
<p><img class="alignnone size-full wp-image-780" title="xp_theme_4" src="http://weseetips.wordpress.com/files/2008/12/xp_theme_4.jpg" alt="xp_theme_4" width="510" height="389" /></p>
<p>6) Now <span style="color:#0000ff;">change the Resource ID</span> to &#8220;<span style="color:#0000ff;"><strong>1</strong></span>&#8220;.</p>
<p><img class="alignnone size-full wp-image-781" title="xp_theme_5" src="http://weseetips.wordpress.com/files/2008/12/xp_theme_5.jpg" alt="xp_theme_5" width="510" height="389" /></p>
<p>7) That&#8217;s it. <span style="color:#0000ff;">Now compile and run</span> the application. And now see the command buttons in Vista Style. Cool! isn&#8217;t it?</p>
<p><img class="alignnone size-full wp-image-782" title="xp_theme_6" src="http://weseetips.wordpress.com/files/2008/12/xp_theme_6.jpg" alt="xp_theme_6" width="333" height="202" /></p>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.wordpress.com/files/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
<span style="color:#0000ff;">I searched a lot for the screenshot of the old &#8220;Jungle Theme&#8221; of Windows 98.</span> Its a pity that I couldn&#8217;t find it. <img src='http://weseetips.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  If you find one such, please do notify. <span style="color:#0000ff;">I&#8217;m getting nostalgic</span>. <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-53" title="intermediateseries" src="http://weseetips.wordpress.com/files/2008/03/intermediateseries.jpg?w=248" alt="" width="248" height="32" /><br />
Targeted Audience &#8211; Intermediate.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/12/30/how-to-enable-xpvista-themes-in-your-dialog/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

