<?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: How To Use UpdateLayeredWindow</title>
	<atom:link href="http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/</link>
	<description>Sharing my software development progress + other interesting things.</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:12:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-30546</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Tue, 02 Aug 2011 06:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-30546</guid>
		<description>Could you post your solution, so it might help others with the same problem?</description>
		<content:encoded><![CDATA[<p>Could you post your solution, so it might help others with the same problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asight</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-30545</link>
		<dc:creator>Asight</dc:creator>
		<pubDate>Tue, 02 Aug 2011 02:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-30545</guid>
		<description>HI Marc：
I solved my problem, thank you for your blog article</description>
		<content:encoded><![CDATA[<p>HI Marc：<br />
I solved my problem, thank you for your blog article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asight</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-30540</link>
		<dc:creator>Asight</dc:creator>
		<pubDate>Mon, 01 Aug 2011 15:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-30540</guid>
		<description>Hi
I met a big problem.
I used this api to make a window that only display text with transparent background, the invoke was succesful,but my dialog shown nothing ,i fist used gdi+ to draw string,and then updateLayeredWindow,everything is transparent and i cant recieve WM_APINT anymore.  O__O！</description>
		<content:encoded><![CDATA[<p>Hi<br />
I met a big problem.<br />
I used this api to make a window that only display text with transparent background, the invoke was succesful,but my dialog shown nothing ,i fist used gdi+ to draw string,and then updateLayeredWindow,everything is transparent and i cant recieve WM_APINT anymore.  O__O！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niny</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-28273</link>
		<dc:creator>Niny</dc:creator>
		<pubDate>Mon, 18 Apr 2011 06:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-28273</guid>
		<description>Dear Marc.

 The files is sent to your mail at nounsoft.com .

Thanks to your attention.</description>
		<content:encoded><![CDATA[<p>Dear Marc.</p>
<p> The files is sent to your mail at nounsoft.com .</p>
<p>Thanks to your attention.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-28223</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Sun, 17 Apr 2011 10:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-28223</guid>
		<description>How are you creating your PNG files?
Are you sure the alpha channel you create is correct?
Send me one of your PNG files.</description>
		<content:encoded><![CDATA[<p>How are you creating your PNG files?<br />
Are you sure the alpha channel you create is correct?<br />
Send me one of your PNG files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niny</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-28220</link>
		<dc:creator>Niny</dc:creator>
		<pubDate>Sun, 17 Apr 2011 08:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-28220</guid>
		<description>Hello Marc.
 
 First, thanks for your good code about using layered windows.
Second, I&#039;m working on using layered windows in win32. I&#039;ve used your code with a arbitary png file, and program runs correctly, but there is a problem. When It loads a png file, for alpha channel areas, program shows irregular colors!
I&#039;ve googled and found a tutorial that has a circle.png file. And when compile with your code, it runs correctly! Maybe there is two kind of png or, something is tricky!
 I&#039;ve search some days and have seen every tutorial and codes about layering a window with png file, even bmp. Some of them explain how we can load a png file to resource, some other load a png to a stream, and some loading a bmp file from scratch.
 At last, when we used bmp file with alpha channel (adding by photoshop) it works correctly, But you know after adding an alpha channel to bmps, we cannot have some effects like window shadow.
 Could you please, help me! Why the code does not show arbitary png file correctly? and what I should do?

Good Luck.</description>
		<content:encoded><![CDATA[<p>Hello Marc.</p>
<p> First, thanks for your good code about using layered windows.<br />
Second, I&#8217;m working on using layered windows in win32. I&#8217;ve used your code with a arbitary png file, and program runs correctly, but there is a problem. When It loads a png file, for alpha channel areas, program shows irregular colors!<br />
I&#8217;ve googled and found a tutorial that has a circle.png file. And when compile with your code, it runs correctly! Maybe there is two kind of png or, something is tricky!<br />
 I&#8217;ve search some days and have seen every tutorial and codes about layering a window with png file, even bmp. Some of them explain how we can load a png file to resource, some other load a png to a stream, and some loading a bmp file from scratch.<br />
 At last, when we used bmp file with alpha channel (adding by photoshop) it works correctly, But you know after adding an alpha channel to bmps, we cannot have some effects like window shadow.<br />
 Could you please, help me! Why the code does not show arbitary png file correctly? and what I should do?</p>
<p>Good Luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DavidFeng</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-23311</link>
		<dc:creator>DavidFeng</dc:creator>
		<pubDate>Mon, 13 Sep 2010 08:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-23311</guid>
		<description>Hi:
Prabhat said,
Wrote on March 17, 2010	 @ 11:43 am
Hi ,
I want to use Webbrowser control with transparent dialog. dilaog box should transparent but webbrowser control part should not transparent.
Thanks,



codeproject.com have at least two examples shows that how to use common windows control and web browser control with layered window, 
they use another window with the layered window to use both controls and semi-trans.

you may search it.

I know this is a reply to late, but maybe it would be helpful for some else who read this post.

David Feng
2010-09-13</description>
		<content:encoded><![CDATA[<p>Hi:<br />
Prabhat said,<br />
Wrote on March 17, 2010	 @ 11:43 am<br />
Hi ,<br />
I want to use Webbrowser control with transparent dialog. dilaog box should transparent but webbrowser control part should not transparent.<br />
Thanks,</p>
<p>codeproject.com have at least two examples shows that how to use common windows control and web browser control with layered window,<br />
they use another window with the layered window to use both controls and semi-trans.</p>
<p>you may search it.</p>
<p>I know this is a reply to late, but maybe it would be helpful for some else who read this post.</p>
<p>David Feng<br />
2010-09-13</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-18554</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Wed, 17 Mar 2010 14:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-18554</guid>
		<description>Try the above procedure. Create your bitmap and make sure the part where the webbrowser control should appear is not transparent;</description>
		<content:encoded><![CDATA[<p>Try the above procedure. Create your bitmap and make sure the part where the webbrowser control should appear is not transparent;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prabhat</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-18538</link>
		<dc:creator>Prabhat</dc:creator>
		<pubDate>Wed, 17 Mar 2010 10:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-18538</guid>
		<description>Hi , 
  I want to use Webbrowser control with transparent dialog. dilaog box should transparent but webbrowser control part should not transparent.
Thanks,
prabaht singh.</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
  I want to use Webbrowser control with transparent dialog. dilaog box should transparent but webbrowser control part should not transparent.<br />
Thanks,<br />
prabaht singh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-15294</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Wed, 30 Dec 2009 12:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-15294</guid>
		<description>Interesting. I have used GIMP before, but didn&#039;t know it supports 32 bit BMP files.
When I find some more time I might give it a try.</description>
		<content:encoded><![CDATA[<p>Interesting. I have used GIMP before, but didn&#8217;t know it supports 32 bit BMP files.<br />
When I find some more time I might give it a try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neptunecentury</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-15264</link>
		<dc:creator>neptunecentury</dc:creator>
		<pubDate>Tue, 29 Dec 2009 17:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-15264</guid>
		<description>@Marc
GIMP for Windows is an excellent image editor and supports 32-bit BMPs. I have created transparent bitmaps with editor for use in my applications, but I have no use for 32-bit bmps as I now use the GDI+ library and it supports loading png files. However, if you want to create an example with loading just BMPs, you could create them with GIMP. http://www.gimp.org/windows/</description>
		<content:encoded><![CDATA[<p>@Marc<br />
GIMP for Windows is an excellent image editor and supports 32-bit BMPs. I have created transparent bitmaps with editor for use in my applications, but I have no use for 32-bit bmps as I now use the GDI+ library and it supports loading png files. However, if you want to create an example with loading just BMPs, you could create them with GIMP. <a href="http://www.gimp.org/windows/" rel="nofollow">http://www.gimp.org/windows/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-14809</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Sun, 13 Dec 2009 11:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-14809</guid>
		<description>I tried to make a BMP file with an alpha channel in two photo editors but they don&#039;t allow it.
Maybe you can use another library to load PNG files?
Maybe this one: http://www.codeguru.com/cpp/g-m/bitmap/otherformats/article.php/c4899/ ?</description>
		<content:encoded><![CDATA[<p>I tried to make a BMP file with an alpha channel in two photo editors but they don&#8217;t allow it.<br />
Maybe you can use another library to load PNG files?<br />
Maybe this one: <a href="http://www.codeguru.com/cpp/g-m/bitmap/otherformats/article.php/c4899/" rel="nofollow">http://www.codeguru.com/cpp/g-m/bitmap/otherformats/article.php/c4899/</a> ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-14807</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 13 Dec 2009 00:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-14807</guid>
		<description>Hello

I have VC++ 6.0 which doesn&#039;t seem to have the CImage class (atlimage.h).

Could you possibly write another version that simply loads a BMP?

I believe the latest version of BMP does support transparency.

Thank you</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I have VC++ 6.0 which doesn&#8217;t seem to have the CImage class (atlimage.h).</p>
<p>Could you possibly write another version that simply loads a BMP?</p>
<p>I believe the latest version of BMP does support transparency.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-9306</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Sun, 05 Jul 2009 18:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-9306</guid>
		<description>Hi Ovidiu :)

I don&#039;t know if that would be possible. I never tried it myself. Why do you need something like that?
Did you try to get the HDC of the layered window? Maybe that HDC is a 32bit device context including the alpha channel...</description>
		<content:encoded><![CDATA[<p>Hi Ovidiu <img src='http://www.nuonsoft.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I don&#8217;t know if that would be possible. I never tried it myself. Why do you need something like that?<br />
Did you try to get the HDC of the layered window? Maybe that HDC is a 32bit device context including the alpha channel&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ovidiu</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-9303</link>
		<dc:creator>Ovidiu</dc:creator>
		<pubDate>Sun, 05 Jul 2009 18:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-9303</guid>
		<description>Hi, Marc,
Is it possible the inverse operation, i.e. saving A channel in a (png) file given a layered window?</description>
		<content:encoded><![CDATA[<p>Hi, Marc,<br />
Is it possible the inverse operation, i.e. saving A channel in a (png) file given a layered window?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-8375</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Wed, 17 Jun 2009 11:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-8375</guid>
		<description>In my example I have this device context called hDC which will be used in the call to UpdateLayeredWindow. This is just a 32bit device context, so RGB and A channels. If you want to add PNG based buttons, load the PNGs (maybe using CImage class) and then render those PNGs at the right position in the hDC. Store the coordinates of your PNG buttons somewhere so you can use the coordinates in your WM_MOUSEMOVE and mouse button messages. Once everything is rendered to hDC, call UpdateLayeredWindow. I think this should give you what you want.</description>
		<content:encoded><![CDATA[<p>In my example I have this device context called hDC which will be used in the call to UpdateLayeredWindow. This is just a 32bit device context, so RGB and A channels. If you want to add PNG based buttons, load the PNGs (maybe using CImage class) and then render those PNGs at the right position in the hDC. Store the coordinates of your PNG buttons somewhere so you can use the coordinates in your WM_MOUSEMOVE and mouse button messages. Once everything is rendered to hDC, call UpdateLayeredWindow. I think this should give you what you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kay</title>
		<link>http://www.nuonsoft.com/blog/2009/05/27/how-to-use-updatelayeredwindow/comment-page-1/#comment-8369</link>
		<dc:creator>Kay</dc:creator>
		<pubDate>Wed, 17 Jun 2009 09:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=244#comment-8369</guid>
		<description>Hi, thanks for that post.

Could you maybe extend this example to show how to use UpdateLayeredWindow with UI Controls like buttons etc?:)

I cant find any solution for this. What i exactly need is to know how i can Use my PNG with alpha channel as background and a set of other pngs as buttons/ui controlls</description>
		<content:encoded><![CDATA[<p>Hi, thanks for that post.</p>
<p>Could you maybe extend this example to show how to use UpdateLayeredWindow with UI Controls like buttons etc?:)</p>
<p>I cant find any solution for this. What i exactly need is to know how i can Use my PNG with alpha channel as background and a set of other pngs as buttons/ui controlls</p>
]]></content:encoded>
	</item>
</channel>
</rss>

