<?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 - Frame not painting properly</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon - Frame not painting properly]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 17:31:38 +0000</pubDate>
  <lastBuildDate>Fri, 18 May 2007 21:15:20 +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=7180</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 - Frame not painting properly : Disregard, please! I knew that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7180&amp;PID=23056&amp;title=ribbon-frame-not-painting-properly#23056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3007">steve_murch</a><br /><strong>Subject:</strong> 7180<br /><strong>Posted:</strong> 18 May 2007 at 9:15pm<br /><br />Disregard, please!&nbsp; I knew that as soon as I posted it, I'd find it.&nbsp; Forgot to finish out the CreateRibbon code with:<DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#020002 size=2>CXTPControl</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pControlAbout</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>GetControls</FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2>Add</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>xtpControlButton</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>ID_APP_ABOUT</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pControlAbout</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>SetFlags</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>xtpFlagRightAlign</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>GetQuickAccessControls</FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2>Add</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>xtpControlButton</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>ID_FILE_SAVE</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>GetQuickAccessControls</FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2>Add</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>xtpControlButton</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>ID_EDIT_UNDO</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>GetQuickAccessControls</FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2>Add</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>xtpControlButton</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>ID_FILE_PRINT</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>GetQuickAccessControls</FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2>CreateOriginalControls</FONT><FONT size=2>();</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>SetCloseable</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>FALSE</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>EnableFrameTheme</FONT><FONT size=2>();</P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 18 May 2007 21:15:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7180&amp;PID=23056&amp;title=ribbon-frame-not-painting-properly#23056</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon - Frame not painting properly : Hi Oleg and team,  First, let...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7180&amp;PID=23054&amp;title=ribbon-frame-not-painting-properly#23054</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3007">steve_murch</a><br /><strong>Subject:</strong> 7180<br /><strong>Posted:</strong> 18 May 2007 at 8:03pm<br /><br />Hi Oleg and team,<DIV>&nbsp;</DIV><DIV>First, let me say that I'm very pleased with the framework you've built.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>I've followed the RibbonSample precisely, but have spent a couple hours now trying to figure out why I still have a typical Vista window frame around the Ribbon window.&nbsp; (Please see screenshot at: <a href="http://www.bigoven.com/images/tour/ribb&#111;n-notright.jpg" target="_blank">http://www.bigoven.com/images/tour/ribbon-notright.jpg</A>).&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>I've gone into the .rc2 file and added the pointer to the Office2007Blue resources, and there are no compile errors.&nbsp; The gradients for the ribbons appear to be there and the control is working well, BUT the overall XTPFrameWnd isn't painting properly -- how do I get that to paint properly?</DIV><DIV>&nbsp;</DIV><DIV>excerpt from CreateRibbonBar:</DIV><DIV><FONT color=#020002 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#020002 size=2>BOOL</FONT><FONT size=2> </FONT><FONT color=#020002 size=2>CMainFrame</FONT><FONT size=2>::</FONT><FONT color=#020002 size=2>CreateRibbonBar</FONT><FONT size=2>()</DIV><DIV><P>{</P><P></FONT><FONT color=#020002 size=2>CXTPCommandBars</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pCommandBars</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>GetCommandBars</FONT><FONT size=2>();</P><P></FONT><FONT color=#020002 size=2>CMenu</FONT><FONT size=2> </FONT><FONT color=#020002 size=2>menu</FONT><FONT size=2>;</P><P></FONT><FONT color=#020002 size=2>menu</FONT><FONT size=2>.</FONT><FONT color=#020002 size=2>Attach</FONT><FONT size=2>(::</FONT><FONT color=#020002 size=2>GetMenu</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>m_hWnd</FONT><FONT size=2>));</P><P></FONT><FONT color=#020002 size=2>SetMenu</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>NULL</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>CXTPRibbonBar</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2> = (</FONT><FONT color=#020002 size=2>CXTPRibbonBar</FONT><FONT size=2>*)</FONT><FONT color=#020002 size=2>pCommandBars</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>Add</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>_T</FONT><FONT size=2>(</FONT><FONT color=#a31515 size=2>"The Ribbon"</FONT><FONT size=2>), </FONT><FONT color=#020002 size=2>xtpBarTop</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>RUNTIME_CLASS</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>CXTPRibbonBar</FONT><FONT size=2>));</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!</FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> </FONT><FONT color=#020002 size=2>FALSE</FONT><FONT size=2>;</P><P>}</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>EnableDocking</FONT><FONT size=2>(0);</P><P></FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>GetTabPaintManager</FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2>m_bSelectOnButtonDown</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>FALSE</FONT><FONT size=2>;</P><P></P><P></FONT><FONT color=#020002 size=2>CXTPControlPopup</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pControlFile</FONT><FONT size=2> = (</FONT><FONT color=#020002 size=2>CXTPControlPopup</FONT><FONT size=2>*)</FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddSystemButton</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_MENU_FILE</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pControlFile</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>SetCommandBar</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>menu</FONT><FONT size=2>.</FONT><FONT color=#020002 size=2>GetSubMenu</FONT><FONT size=2>(0));</P><P></FONT><FONT color=#020002 size=2>pControlFile</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>SetIconId</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>IDB_GEAR</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>UINT</FONT><FONT size=2> </FONT><FONT color=#020002 size=2>uCommand</FONT><FONT size=2> = {</FONT><FONT color=#020002 size=2>IDB_GEAR</FONT><FONT size=2>};</P><P>&nbsp;</P><P></FONT><FONT color=#020002 size=2>LoadCommandBars</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>_T</FONT><FONT size=2>(</FONT><FONT color=#a31515 size=2>"CommandBars"</FONT><FONT size=2>));</P><P></FONT><FONT color=#020002 size=2>pCommandBars</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>GetImageManager</FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2>SetIcons</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>IDB_GEAR</FONT><FONT size=2>, &amp;</FONT><FONT color=#020002 size=2>uCommand</FONT><FONT size=2>, 1, </FONT><FONT color=#020002 size=2>xtpImageNormal</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>CXTPRibbonTab</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pTabHome</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddTab</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_TAB_HOME</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>CXTPRibbonTab</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pTabRecipes</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddTab</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_TAB_RECIPES</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>CXTPRibbonTab</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pTabMenus</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddTab</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_TAB_MENUS</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>CXTPRibbonTab</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pTabPlan</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddTab</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_TAB_PLAN</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>CXTPRibbonTab</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pTabShop</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddTab</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_TAB_SHOP</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>CXTPRibbonTab</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pTabPublish</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pRibbonBar</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddTab</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_TAB_PUBLISH</FONT><FONT size=2>);</P><P>&nbsp;</FONT><FONT color=#020002 size=2>CXTPRibbonGroup</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pGroupClipborad</FONT><FONT size=2> = </FONT><FONT color=#020002 size=2>pTabHome</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>AddGroup</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>ID_GROUP_CLIPBOARD</FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2>pGroupClipborad</FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2>ShowOptionButton</FONT><FONT size=2>();</P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 18 May 2007 20:03:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7180&amp;PID=23054&amp;title=ribbon-frame-not-painting-properly#23054</guid>
  </item> 
 </channel>
</rss>