<?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 Flickering buttons in status bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : [solved] v17 Flickering buttons in status bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 08:20:27 +0000</pubDate>
  <lastBuildDate>Mon, 15 Feb 2016 10:46:34 +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=22891</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 Flickering buttons in status bar : Hello Dan,Thank you for bringing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22891&amp;PID=74464&amp;title=solved-v17-flickering-buttons-in-status-bar#74464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22891<br /><strong>Posted:</strong> 15 February 2016 at 10:46am<br /><br />Hello Dan,<br><br>Thank you for bringing this to our attention. I have added your changes to our code.<br><br>Regards,<br>&nbsp;Oleksandr Lebed<br>]]>
   </description>
   <pubDate>Mon, 15 Feb 2016 10:46:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22891&amp;PID=74464&amp;title=solved-v17-flickering-buttons-in-status-bar#74464</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] v17 Flickering buttons in status bar : Hi,After upgrading from v16.3.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22891&amp;PID=74430&amp;title=solved-v17-flickering-buttons-in-status-bar#74430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8719">Dan</a><br /><strong>Subject:</strong> 22891<br /><strong>Posted:</strong> 11 February 2016 at 10:39am<br /><br />Hi,<div><br></div><div>After upgrading from v16.3.1 to v17, the&nbsp;CXTPButton sub-classed buttons on the status-bar of our application have started to flicker (going from their unpressed state to pressed state) as you move the mouse around.</div><div><br></div><div>Each of these buttons have command update handlers which are called during idle processing time to make sure they have the correct state. &nbsp; e.g. something like...</div><div><br></div><div><div>void CMainFrame::OnUpdateUtilsParallelto(CCmdUI* pCmdUI)&nbsp;</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>pCmdUI-&gt;Enable(allow_snap);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>pCmdUI-&gt;SetCheck(current_snap_type() == SNAP_PARALLEL);</div><div>}</div></div><div><br></div><div>I think the problem is related to this new code in XTPButton.cpp (introduced since v16.3.1)...</div><div><br></div><div><div>LRESULT CXTPButton::OnSetCheck(WPARAM wParam, LPARAM /*lParam*/)</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>BOOL bVisible = GetStyle() &amp; WS_VISIBLE;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (bVisible) ModifyStyle(WS_VISIBLE, 0);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>Default();</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (bVisible) ModifyStyle(0, WS_VISIBLE);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (IsPushButton())</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span><b>SetChecked(!GetChecked());</b></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>...</div><div><br></div><div>The line in bold seems to assume that because a button is a push button that calling OnSetCheck should toggle the state, when in fact, the wParam parameter indicates the desired state which could be the same as it was previously.</div><div><br></div><div>Changing that line to...</div><div><br></div><div><span style="line-height: 16.8px;">SetChecked(wParam==BST_CHECKED);</span></div><div><span style="line-height: 16.8px;"><br></span></div><div><span style="line-height: 16.8px;">Fixes the problem for our application.</span></div><div><br></div><div><span style="line-height: 16.8px;">Dan</span></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 11 Feb 2016 10:39:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22891&amp;PID=74430&amp;title=solved-v17-flickering-buttons-in-status-bar#74430</guid>
  </item> 
 </channel>
</rss>