<?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; window at top</title>
	<atom:link href="http://weseetips.com/tag/window-at-top/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 Set Dialog as TopMost Window?</title>
		<link>http://weseetips.com/2009/10/11/how-to-set-dialog-to-topmost-window/</link>
		<comments>http://weseetips.com/2009/10/11/how-to-set-dialog-to-topmost-window/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 15:01:25 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[Always on top]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[HWND_TOPMOST]]></category>
		<category><![CDATA[set topmost window]]></category>
		<category><![CDATA[SetWindowPos()]]></category>
		<category><![CDATA[topmost window]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[window at top]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1190</guid>
		<description><![CDATA[I always wondered about popularity of Winamp. It has rich custom drawn UI, which made it stand out of the crowd. Did you noticed its &#8220;Always on top&#8221; feature and wondered about how its implemented? Its time to reveal the secret &#8211; How winamp implemented that feature &#8211; Staying at the top? You can use [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
I always wondered about <span style="color:#0000ff;">popularity of Winamp</span>. It has <span style="color:#0000ff;">rich custom drawn UI</span>, which made it stand out of the crowd. Did you noticed its<span style="color:#0000ff;"> &#8220;Always on top&#8221; feature </span>and wondered about how its implemented? Its time to reveal the secret &#8211; How winamp implemented that feature &#8211; <span style="color:#0000ff;"><strong>Staying at the top</strong>?</span></p>
<p><img class="alignnone size-full wp-image-1191" title="SetTopMostWindow" src="http://siteground205.com/~weseetip/wp-content/uploads/2009/10/settopmostwindow.jpg" alt="SetTopMostWindow" width="300" height="325" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
You can use &#8211; <strong>SetWindowPos()</strong> with <strong>HWND_TOPMOST</strong> flag. Have a look at the code snippet.</p>
<pre>void CRabbitDlg::OnSetTopmost()
{
    // Set window position to topmost window.
    ::SetWindowPos( GetSafeHwnd(),
                    HWND_TOPMOST,
                    0, 0, 0, 0,
                    SWP_NOMOVE | SWP_NOREDRAW | SWP_NOSIZE );
}</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
Single line of code. But wowing feature. isn&#8217;t it?</p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2009/10/11/how-to-set-dialog-to-topmost-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

