<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : [solved] v17 BUG ProcessPendingPaintMessages hangs</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : [solved] v17 BUG ProcessPendingPaintMessages hangs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 21:15:40 +0000</pubDate>
  <lastBuildDate>Sat, 23 Apr 2016 05:28:05 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=22835</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : Hi Oleksandr,this seems to have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74696&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 23 April 2016 at 5:28am<br /><br />Hi Oleksandr,<br><br>this seems to have been fixed successfully in 17.2. Thanks!<br>]]>
   </description>
   <pubDate>Sat, 23 Apr 2016 05:28:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74696&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74696</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : Hello Fredrik,Highlighting of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74367&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 24 January 2016 at 3:21am<br /><br />Hello Fredrik,<br><br>Highlighting of backstage commands for Office 2013 (except Word) or Visual Studio 2015 themes do not related with changes in CXTPDrawHelpers::ProcessPendingPaintMessages. &nbsp;I'm working on those themes now.<br><br>But changes in CXTPDrawHelpers::ProcessPendingPaintMessages have impact on DockinPane &nbsp;with next settings CXTPDockingPaneManager::SetAlphaDockingContext(FALSE) and CXTPDockingPaneManager::SetShowContentsWhileDragging(TRUE). We are looking for solution now.<br><br>Regards,<br>&nbsp;Lebed Oleksandr<br>]]>
   </description>
   <pubDate>Sun, 24 Jan 2016 03:21:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74367&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74367</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : Hi, is this perhaps related to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74365&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74365</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1263">Fredrik</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 23 January 2016 at 8:06pm<br /><br />Hi, is this perhaps related to what I have reported twice, last in the last message in the following post?&nbsp;http://forum.codejock.com/forum_posts.asp?TID=22599&amp;KW=&amp;FID=112&amp;PR=3&amp;PID=74264&amp;title=version-170-sneak-peek#74264<div><br></div><div>I.e. a workaround is to call&nbsp;<span style="line-height: 16.8px; : rgb248, 248, 252;">m_pPaneManager.UseSplitterTracker with FALSE for now.</span></div><div><span style="line-height: 16.8px; : rgb248, 248, 252;"><br></span></div><div><span style="line-height: 16.8px; : rgb248, 248, 252;">I submitted a support ticket for over two weeks ago how to easily reproduce the problem in CodeJock samples. No reply as so far. I wonder what happened with the expected response time of 24-48 hours...</span></div>]]>
   </description>
   <pubDate>Sat, 23 Jan 2016 20:06:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74365&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74365</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : Hi, OleksandrI tried your solution....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74344&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74344</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 20 January 2016 at 3:59am<br /><br />Hi, Oleksandr<br><br>I tried your solution. It prevents the freeze, but has <b>side-effects.</b><br>Your solution allows messages to be processed between the two PeekMessage calls. In my application this causes the following behavior:<br><br>I left-click the panel border and start dragging the border left or right. The panel resizes (no freeze,. good!) but then the 'mode' changes and the border stops following the mouse movements - like I had release the left mouse button. But the button is still pressed.<br><br>I have to release and left-click again to continue with the resizing.<br><br>In my solution, the user can move the border left and right to resize the panel until he releases the mouse button. This is the desired and normal behavior.<br><br>I think that the same effect happens in your solution: The first PeekMessage determines that a message needs to be processed. But before the second PeekMessage is called (the replacement for the GetMessage), the message is consumed. PeekMessage returns FALSE and the loop ends. This affects your mouse tracking or something.<br><br>The idea in my solution was to process the message straight away, without giving something else the chance to remove it from the message queue. This prevents blocking and unwanted side-effects.<br><br><br><br><br>]]>
   </description>
   <pubDate>Wed, 20 Jan 2016 03:59:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74344&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74344</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : Yes, logic the same, butIf I change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74340&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 19 January 2016 at 1:58pm<br /><br />Yes, logic the same, but<br><p>If I change whole method's body then it will be harder in future to track changes in this method with SVN.</p><p>That is why I want change just one line and ask you to test, please&nbsp;<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /></p>]]>
   </description>
   <pubDate>Tue, 19 Jan 2016 13:58:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74340&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74340</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : I&amp;#039; quite sure it will work.Both...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74339&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74339</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 19 January 2016 at 1:33pm<br /><br />I' quite sure it will work.<br><br>Both solutions avoid the potentially blocking call to GetMessage and use a PeekMessage with PM_REMOVE instead. This also pumps the paint messages, but avoids the risk of blocking in the case that the message is consumed between the PeekMessage and the GetMessage call.<br>]]>
   </description>
   <pubDate>Tue, 19 Jan 2016 13:33:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74339&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74339</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs :   MacW wrote:MSDN says:Note that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74338&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74338</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 19 January 2016 at 11:29am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by MacW" alt="Originally posted by MacW" style="vertical-align: text-bottom;" /> <strong>MacW wrote:</strong><br /><br />MSDN says:<br><br><font color="#0000CC"><em>Note that <strong>PeekMessage</strong> always retrieves <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms632641%28v=vs.85%29.aspx" target="_blank" rel="nofollow"><strong>WM_QUIT</strong></a> messages, no matter which values you specify for wMsgFilterMin and wMsgFilterMax</em>.<br><br></font>so I considered it safer to handle this case and return FALSE.<br><p></td></tr></table></p><p>Ok, I missed this. &nbsp;But have you tried my proposal ? (I can't yet reproduce behavior of your application on our samples.)</p><p><br></p>]]>
   </description>
   <pubDate>Tue, 19 Jan 2016 11:29:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74338&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74338</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : MSDN says:Note that PeekMessage...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74337&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74337</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 19 January 2016 at 11:22am<br /><br />MSDN says:<br><br><font color="#0000CC"><em>Note that <strong>PeekMessage</strong> always retrieves <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms632641%28v=vs.85%29.aspx" target="_blank" rel="nofollow"><strong>WM_QUIT</strong></a> messages, no matter which values you specify for wMsgFilterMin and wMsgFilterMax</em>.<br><br></font>so I considered it safer to handle this case and return FALSE.<br>]]>
   </description>
   <pubDate>Tue, 19 Jan 2016 11:22:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74337&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74337</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : Hello MacW,Try to change in our...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74335&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74335</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 19 January 2016 at 8:29am<br /><br />Hello MacW,<br><br>Try to change in our version of ProcessPendingPaintMessages method<br><table width="99%"><tr><td><pre class="BBcode">if (0 &lt; ::GetMessage(&amp;msg, hWnd, msgPeeked.message, msgPeeked.message))</pre></td></tr></table><br>with<br><table width="99%"><tr><td><pre class="BBcode">if (::PeekMessage(&amp;msg, hWnd, msgPeeked.message, msgPeeked.message, PM_REMOVE))</pre></td></tr></table><br>I have tested these changes on our samples without hangs.<br><br>Also I think<br><table width="99%"><tr><td><pre class="BBcode">if (msg.message == WM_QUIT)</pre></td></tr></table>never be TRUE because msg.message can be only one of { WM_PAINT , WM_ERASEBKGND , WM_SYNCPAINT , WM_NCPAINT }<br><br>Regards,<br> Oleksandr Lebed]]>
   </description>
   <pubDate>Tue, 19 Jan 2016 08:29:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74335&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74335</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 BUG ProcessPendingPaintMessages hangs : This is all taking way too long....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74334&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74334</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 22835<br /><strong>Posted:</strong> 19 January 2016 at 5:23am<br /><br />This is all taking way too long. My users are killing me.<br>Over a week, and no feedback on this. I'm sorry to say but I wonder why I pay the fees every year.<br><br>Although I really hate to change Codejock code, I saw no other chance to fix this. I changed your code, which reliably freezes, with this code:<br><table width="99%"><tr><td><pre class="BBcode">BOOL CXTPDrawHelpers::ProcessPendingPaintMessages(HWND hWnd /*= NULL*/)<br>    {<br>        MSG msg;<br>        const UINT MESSAGES&#091;&#093; = { WM_PAINT , WM_ERASEBKGND , WM_SYNCPAINT , WM_NCPAINT };<br><br>        while (true) {<br>            bool processed = false;<br>            for (int k = 0; k &lt; _countof(MESSAGES); k++) {<br>                while (::PeekMessage(&amp;msg, hWnd, MESSAGES&#091;k&#093;, MESSAGES&#091;k&#093;, PM_REMOVE)) {<br>                    if (msg.message == WM_QUIT) {<br>                        return FALSE;<br>                    }<br>                    ::DispatchMessage(&amp;msg);<br>                    ::ValidateRect(msg.hwnd, NULL);<br>                    processed = true;<br>                }<br>            }<br>            if (!processed) return TRUE;<br>        }<br>    }</pre></td></tr></table> <br>which (apparently) does the same as your code, but does not freeze the application. It's just a work-around but it does the job. I hope you can fix this more elegantly.<em><em></em></em>]]>
   </description>
   <pubDate>Tue, 19 Jan 2016 05:23:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22835&amp;PID=74334&amp;title=solved-v17-bug-processpendingpaintmessages-hangs#74334</guid>
  </item> 
 </channel>
</rss>