<?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>The Old New Thing - All Comments</title><link>http://blogs.msdn.com/b/oldnewthing/</link><description>not actually to establish a blogging point where individuals can enrich their learns on facilitating and leveraging .NET-related activities most effectively</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Untangling the confusingly-named WM_UPDATEUISTATE and WM_CHANGEUISTATE messages</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419105.aspx#10419886</link><pubDate>Sat, 18 May 2013 20:27:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419886</guid><dc:creator>Mark S</dc:creator><description>&lt;p&gt;Well, appears the answer is &amp;quot;not at all&amp;quot;: I had been trying to chime in with kinokijuf but oh well. &amp;nbsp;(My comment about the blog software was not out of left field; I suspected my comment had been eaten).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419886" width="1" height="1"&gt;</description></item><item><title>re: Untangling the confusingly-named WM_UPDATEUISTATE and WM_CHANGEUISTATE messages</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419105.aspx#10419885</link><pubDate>Sat, 18 May 2013 20:22:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419885</guid><dc:creator>Mark S</dc:creator><description>&lt;p&gt;Speaking of usability, how sad that this blog software is still so terrible at the simple task of taking in and displaying comments. &amp;nbsp;Is my previous comment submitted once, twice, not at all? &amp;nbsp;Shrug!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419885" width="1" height="1"&gt;</description></item><item><title>re: Your electric fan is trying to kill you, and other cultural superstitions</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419106.aspx#10419820</link><pubDate>Sat, 18 May 2013 09:42:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419820</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;My mother said that if you swallowed chewing gum it would stick you bum together. That may have been more humour than belief in hindsight.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419820" width="1" height="1"&gt;</description></item><item><title>re: Your electric fan is trying to kill you, and other cultural superstitions</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419106.aspx#10419801</link><pubDate>Sat, 18 May 2013 05:30:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419801</guid><dc:creator>Lev</dc:creator><description>&lt;p&gt;@Martin McNulty, &amp;quot;Shoes upon the table&amp;quot; have been immortalized in the musical &amp;quot;blood brothers&amp;quot;. But even if they don&amp;#39;t bring bad luck, they make your table dirty, and if you happen to put the fork where the shoes stood and then eat with it, you might get bad luck... Unless you&amp;#39;ve never worn those shoes.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419801" width="1" height="1"&gt;</description></item><item><title>re: Who sends the initial WM_UPDATEUISTATE message?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/17/10419502.aspx#10419789</link><pubDate>Sat, 18 May 2013 04:12:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419789</guid><dc:creator>Crescens2k</dc:creator><description>&lt;p&gt;I obviously over thought this. It has been a hard week and I was looking for problems where they didn&amp;#39;t exist.&lt;/p&gt;
&lt;p&gt;Well, the dialog controls need to exist before it initialises the UI states, but from what I understand of the dialog creation procedure, it is:&lt;/p&gt;
&lt;p&gt;Get dialog template from somewhere (either resource, or via parameter)&lt;/p&gt;
&lt;p&gt;Create main dialog window using CreateWindowEx.&lt;/p&gt;
&lt;p&gt;Create child controls for dialog window using CreateWindowEx.&lt;/p&gt;
&lt;p&gt;Send WM_INITDIALOG message to the main dialog window.&lt;/p&gt;
&lt;p&gt;Show the window if the visible flag is set.&lt;/p&gt;
&lt;p&gt;For DialogBox only, run its own message pump.&lt;/p&gt;
&lt;p&gt;Since the WM_CREATE message is sent to a window before CreateWindowEx returns. By the time the WM_CREATE handler returns there are no controls at all. This means the window manager can&amp;#39;t do it automatically after WM_CREATE finishes processing because the controls don&amp;#39;t exist and the UI state initialisation requires the child controls to exist first.&lt;/p&gt;
&lt;p&gt;Hopefully I haven&amp;#39;t overthought things this time.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419789" width="1" height="1"&gt;</description></item><item><title>re: Your electric fan is trying to kill you, and other cultural superstitions</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419106.aspx#10419770</link><pubDate>Sat, 18 May 2013 00:21:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419770</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Oh, and could it be that the Koreans were talking about their electric worshiping/admirer devices, and not electrical hot/cold air devices? &amp;nbsp;I sure can imagine those causing harm if left unsupervised.&lt;/p&gt;
&lt;p&gt;Sorry, couldn&amp;#39;t resist.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419770" width="1" height="1"&gt;</description></item><item><title>re: Your electric fan is trying to kill you, and other cultural superstitions</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419106.aspx#10419764</link><pubDate>Fri, 17 May 2013 22:58:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419764</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;1. Salt causes high blood pressure (associative not causal)&lt;/p&gt;
&lt;p&gt;2. You can&amp;#39;t swim for at least 30 minutes after eating&lt;/p&gt;
&lt;p&gt;3. when I was growing up the wrestling coach wouldn&amp;#39;t let us drink any water while we ran because it would &amp;quot;cause cramps&amp;quot; (dehydration anybody??)&lt;/p&gt;
&lt;p&gt;4. Fat is bad for you &lt;/p&gt;
&lt;p&gt;5. if you read in low-light you&amp;#39;ll go blind&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419764" width="1" height="1"&gt;</description></item><item><title>re: Who sends the initial WM_UPDATEUISTATE message?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/17/10419502.aspx#10419750</link><pubDate>Fri, 17 May 2013 21:13:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419750</guid><dc:creator>Crescens2k</dc:creator><description>&lt;p&gt;&amp;quot;Exercise: Why can&amp;#39;t the window manager do this automatically after WM_CREATE returns?&amp;quot;&lt;/p&gt;
&lt;p&gt;Well, from the CREATESTRUCT documentation for lpCreateParams&amp;quot; member.&lt;/p&gt;
&lt;p&gt;&amp;quot;If the window is being created from a dialog template, this member is the address of a SHORT value that specifies the size, in bytes, of the window creation data. The value is immediately followed by the creation data.&amp;quot;&lt;/p&gt;
&lt;p&gt;Since the CREATESTRUCT is only given to CreateWindow(Ex) and not stored anywhere else, the information that the window manager and anything else needs would be gone after the WM_CREATE message has finished processing.&lt;/p&gt;
&lt;div class="post"&gt;[&lt;em&gt;Not sure how the CREATESTRUCT is involved. The question is &amp;quot;Why can&amp;#39;t the window manager initialize the UI states when the window returns from its WM_CREATE handler?&amp;quot; -Raymond&lt;/em&gt;]&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419750" width="1" height="1"&gt;</description></item><item><title>re: Your electric fan is trying to kill you, and other cultural superstitions</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419106.aspx#10419747</link><pubDate>Fri, 17 May 2013 20:47:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419747</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Growing up in Norther Norway, where the Aurora ( &lt;a rel="nofollow" target="_new" href="http://en.wikipedia.org/wiki/Aurora_(astronomy)"&gt;en.wikipedia.org/.../Aurora_(astronomy)&lt;/a&gt; ) is common during winter, the generation me were told not to wave at the sky during the Aurora, or evil spirits would descend and abduct you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419747" width="1" height="1"&gt;</description></item><item><title>re: Your electric fan is trying to kill you, and other cultural superstitions</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2013/05/16/10419106.aspx#10419729</link><pubDate>Fri, 17 May 2013 19:21:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419729</guid><dc:creator>Nicholas</dc:creator><description>&lt;p&gt;&amp;gt; Somehow, hot soup (traditionally eaten before other courses) manages to avoid diluting precious bodily fluids.&lt;/p&gt;
&lt;p&gt;In that context (Russian superstitions), this sentence made me laugh out loud. &amp;nbsp;(&lt;a rel="nofollow" target="_new" href="http://en.wikipedia.org/wiki/Dr._Strangelove"&gt;en.wikipedia.org/.../Dr._Strangelove&lt;/a&gt;) &amp;nbsp;Well done :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419729" width="1" height="1"&gt;</description></item></channel></rss>