<?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>Why do we need IsDialogMessage at all?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/04/16/10293933.aspx</link><description>Who would do the navigation?</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Why do we need IsDialogMessage at all?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/04/16/10293933.aspx#10294397</link><pubDate>Tue, 17 Apr 2012 09:50:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10294397</guid><dc:creator>alv</dc:creator><description>&lt;p&gt;Thanks for the explanation! I also see now that I formulated my question in a misleading way; instead of &amp;#39;has focus&amp;#39; I should&amp;#39;ve written &amp;#39;active&amp;#39;. Let me explain: This question came up when I was to develop and add-on to a somewhat large software suite, and part of the project was displaying a modeless dialog. I didn&amp;#39;t have access to the main message loop (not even read-only access to the source code), and because of other constraints having my own message loop in a separate thread or process wasn&amp;#39;t feasible either. Therefore, I had to reimplement the functionality of IsDialogMessage inside the dialog. I would&amp;#39;ve been very happy if there had been some way of telling Windows &amp;#39;Hey, here is my modeless dialog, please incorporate it in some magical way to the message loop&amp;#39;, and of course deregister it afterwards - for example when handling the WM_ACTIVATE message.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10294397" width="1" height="1"&gt;</description></item><item><title>re: Why do we need IsDialogMessage at all?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/04/16/10293933.aspx#10294198</link><pubDate>Mon, 16 Apr 2012 17:37:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10294198</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Sometimes I skip an entry since it seems so high above my head in Windows API world, but I gave this one a shot and learned something interesting about Windows and events in general :) I&amp;#39;ll take this lesson with me.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10294198" width="1" height="1"&gt;</description></item><item><title>re: Why do we need IsDialogMessage at all?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/04/16/10293933.aspx#10294134</link><pubDate>Mon, 16 Apr 2012 15:15:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10294134</guid><dc:creator>Joshua</dc:creator><description>&lt;p&gt;Wow, I reinvented IsDialogMessage once.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10294134" width="1" height="1"&gt;</description></item><item><title>re: Why do we need IsDialogMessage at all?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/04/16/10293933.aspx#10294116</link><pubDate>Mon, 16 Apr 2012 14:49:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10294116</guid><dc:creator>Random832</dc:creator><description>&lt;p&gt;I think this misconception may be in some part based on the HTML event model, where inner &amp;quot;controls&amp;quot; [elements], like the OK button, naturally pass the event on to the parent if they do not handle it themselves. (or the other HTML event model, where the parent control is always given all events and can choose to handle it itself or give it to the relevant child element - in either case, nothing special has to happen for the dialog to handle &amp;quot;tab&amp;quot;, since the button clearly isn&amp;#39;t interested in it.)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10294116" width="1" height="1"&gt;</description></item></channel></rss>