<?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 : Ribbon buttons not repainted!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Ribbon buttons not repainted!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 07:17:28 +0000</pubDate>
  <lastBuildDate>Sun, 28 Sep 2008 14:49:55 +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=12277</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[Ribbon buttons not repainted! : Ok, for some magic reason this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12277&amp;PID=41440&amp;title=ribbon-buttons-not-repainted#41440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 12277<br /><strong>Posted:</strong> 28 September 2008 at 2:49pm<br /><br />Ok, for some magic reason this seems to work:<DIV><FONT color=#040004 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#040004 size=2>ModifyStyle</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>WS_THICKFRAME</FONT><FONT size=2> | </FONT><FONT color=#040004 size=2>WS_CAPTION</FONT><FONT size=2>, 0, </FONT><FONT color=#040004 size=2><strong>SWP_FRAMECHANGED</strong></FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>This window has nothing to do with CMainFrame. I don't get it...</DIV></FONT>]]>
   </description>
   <pubDate>Sun, 28 Sep 2008 14:49:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12277&amp;PID=41440&amp;title=ribbon-buttons-not-repainted#41440</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon buttons not repainted! : XTP 12.0.2   I have an SDI ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12277&amp;PID=41439&amp;title=ribbon-buttons-not-repainted#41439</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 12277<br /><strong>Posted:</strong> 28 September 2008 at 2:22pm<br /><br />XTP 12.0.2 <DIV>&nbsp;</DIV><DIV>I have an SDI ribbon application, and when I hide/show this window the buttons at the top are not repainted correctly.</DIV><DIV>&nbsp;</DIV><DIV>pMainWnd-&gt;ShowWindow(SW_HIDE);</DIV><DIV>// Another frame window is visible...</DIV><DIV>&nbsp;</DIV><DIV>// Later on the other frame window is destroyed, and the main frame is shown again:</DIV><DIV>pMainWnd-&gt;ShowWindow(SW_SHOW);</DIV><DIV>&nbsp;</DIV><DIV><strong>When I hover the ribbon buttons, they are painted incorrectly until I Alt+Tab twice:</strong></DIV><DIV><img src="http://forum.codejock.com/uploads/20080928_142056_ribb&#111;n_butt&#111;n_p.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Hmm, this is the code in CAnotherFrameWnd::OnCreate(...):</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#040004 size=2>ModifyStyle</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>WS_THICKFRAME</FONT><FONT size=2> | </FONT><FONT color=#040004 size=2>WS_CAPTION</FONT><FONT size=2>, 0);</DIV><DIV><DIV></FONT><FONT color=#040004 size=2>ModifyStyleEx</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>WS_EX_CLIENTEDGE</FONT><FONT size=2>, 0);</FONT></DIV><DIV><FONT color=#040004 size=2>CXTPPaintManager</FONT><FONT size=2>::</FONT><FONT color=#040004 size=2>SetTheme</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>xtpThemeRibbon</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Could this have something to do with it? Basically, this frame must not have a frame at all, but its panes must have the 2007-style...</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Sun, 28 Sep 2008 14:22:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12277&amp;PID=41439&amp;title=ribbon-buttons-not-repainted#41439</guid>
  </item> 
 </channel>
</rss>