<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx</link><description>I get a lot of questions about how to do transparent top-level windows in Avalon, or nonrectangular windows, or layered windows, or other variations on the same theme. The short answer is you can do most of these things, but it’s really a Win32 feature</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>webionaire &amp;raquo; Cursor Flicker</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#2634619</link><pubDate>Tue, 15 May 2007 01:18:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2634619</guid><dc:creator>webionaire » Cursor Flicker</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://webionaire.com/island/?p=175"&gt;http://webionaire.com/island/?p=175&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2634619" width="1" height="1"&gt;</description></item><item><title>re: Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#593911</link><pubDate>Tue, 09 May 2006 23:28:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:593911</guid><dc:creator>rabidrobot</dc:creator><description>I'm sorry, I used &amp;quot;Tim&amp;quot; where I meant &amp;quot;Nick&amp;quot;. &amp;nbsp;My apologies.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=593911" width="1" height="1"&gt;</description></item><item><title>re: Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#593910</link><pubDate>Tue, 09 May 2006 23:28:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:593910</guid><dc:creator>rabidrobot</dc:creator><description>Tim said:&lt;br&gt;&amp;quot;We don’t currently support per-pixel alpha, if you try today you get black instead of transparent. &amp;nbsp;We’re looking into this, right now it’s not clear which platforms we’ll be able to get it for.&amp;quot;&lt;br&gt;&lt;br&gt;Is this still the latest information, and could you be more specific as to what exactly you are referring to? &amp;nbsp;We can make per-pixel alpha transparent (2D) images and place them in the HwndSource now. &amp;nbsp;But I am seeing black where I expect transparency when I try to capture layered windows to a bitmap using CopyPixelOperation.CaptureBlt. &amp;nbsp;Is it possible that fixes have been made in some areas but not all? &amp;nbsp;CopyPixelOperation is .NET2.0, not Avalon, so... &amp;nbsp;?&lt;br&gt;(I am using WindowsXP, if that is a concern)&lt;br&gt;&lt;br&gt;Tim also said:&lt;br&gt;&amp;quot;HRGNs work completely&amp;quot;&lt;br&gt;&lt;br&gt;Is there any more information on how to use these available? &amp;nbsp;Can the region path be defined by a XAML path? &amp;nbsp;Or will it require creating a bitmap, then rectangulating the bitmap to get a region path? &amp;nbsp;Any pointers in this area would be very welcome.&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=593910" width="1" height="1"&gt;</description></item><item><title>re: Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#590095</link><pubDate>Thu, 04 May 2006 21:25:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:590095</guid><dc:creator>Nick Kramer [MSFT]</dc:creator><description>(I was referring to merging the layered windows, but the pop-up approaches also viable -- I keep meeting to write about that but I still haven't finished the complete sample)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=590095" width="1" height="1"&gt;</description></item><item><title>re: Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#590094</link><pubDate>Thu, 04 May 2006 21:24:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:590094</guid><dc:creator>Nick Kramer [MSFT]</dc:creator><description>Hmm, neat trick, that could work!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=590094" width="1" height="1"&gt;</description></item><item><title>re: Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#589854</link><pubDate>Thu, 04 May 2006 16:12:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:589854</guid><dc:creator>Alex Cohn</dc:creator><description>I have found (but not tested yet) another approach: using POPUP child windows for the layered window: cf. &lt;a rel="nofollow" target="_new" href="http://web.mac.com/seattleamadio/iWeb/OoeyGUI/Blog/8834809A-FC89-4534-8B7F-55306752131B.html"&gt;http://web.mac.com/seattleamadio/iWeb/OoeyGUI/Blog/8834809A-FC89-4534-8B7F-55306752131B.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=589854" width="1" height="1"&gt;</description></item><item><title>re: Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#589735</link><pubDate>Thu, 04 May 2006 10:43:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:589735</guid><dc:creator>Alex Cohn</dc:creator><description>Yes, I thought about this. The trick is, at least in my case, while the window is being moved, it does not change - therefore, I can capture the opaque &amp;quot;region&amp;quot; window &amp;nbsp;using PrintWindow(), hide it, and extend the layered one to the &amp;quot;full size&amp;quot;.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=589735" width="1" height="1"&gt;</description></item><item><title>re: Transparent and non-rectangular windows</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#588837</link><pubDate>Wed, 03 May 2006 04:37:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:588837</guid><dc:creator>Nick Kramer [MSFT]</dc:creator><description>That can work, and for many people in scenarios it's worth pursuing. &amp;nbsp;The one complication you may run into is moving the two windows together -- traditionally in Win32, it's difficult to move two adjacent hwnds simultaneously in a way that doesn't have some kind of flashing at the boundary between them. &amp;nbsp;(eg, the system repaints after the first hwnd is moved to before the second one...)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=588837" width="1" height="1"&gt;</description></item><item><title>re: per-pixel alpha</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#588424</link><pubDate>Tue, 02 May 2006 18:53:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:588424</guid><dc:creator>Alex Cohn</dc:creator><description>Hi, have you ever seen an attempt to put side-by side a region window with an per-pixel aplha window? My idea was to make the latter (a thin stripe on the right-bottom) adjacent to the fully oblique region window to provide a 3D shadow effect.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=588424" width="1" height="1"&gt;</description></item><item><title>The hwnd interop white paper</title><link>http://blogs.msdn.com/b/nickkramer/archive/2005/06/24/432517.aspx#440088</link><pubDate>Mon, 18 Jul 2005 23:02:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:440088</guid><dc:creator>Nick Kramer on Avalon</dc:creator><description>So that&amp;amp;amp;nbsp;concludes my series about hwnd interop, which is really a draft of the hwnd interop white...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=440088" width="1" height="1"&gt;</description></item></channel></rss>