<?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 : MDI-app with ribbon cannot be maximized!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : MDI-app with ribbon cannot be maximized!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 01:47:39 +0000</pubDate>
  <lastBuildDate>Sun, 06 Aug 2006 06:06: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=4744</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[MDI-app with ribbon cannot be maximized! : // pRibbonBar-&amp;gt;EnableFrameTheme();  That...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4744&amp;PID=14720&amp;title=mdiapp-with-ribbon-cannot-be-maximized#14720</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4744<br /><strong>Posted:</strong> 06 August 2006 at 6:06am<br /><br /><P>// pRibbonBar-&gt;EnableFrameTheme();</P><DIV></DIV><DIV></DIV>That solves it, but then I get no "nice frame" :(. This frame looks ok in the Ribbon Sample. I'll take a look and see what else needs to be called to get the frame paint itself correctly.]]>
   </description>
   <pubDate>Sun, 06 Aug 2006 06:06:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4744&amp;PID=14720&amp;title=mdiapp-with-ribbon-cannot-be-maximized#14720</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-app with ribbon cannot be maximized! : When I add a simple ribbon to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4744&amp;PID=14717&amp;title=mdiapp-with-ribbon-cannot-be-maximized#14717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4744<br /><strong>Posted:</strong> 05 August 2006 at 7:41am<br /><br /><DIV>When I add a simple ribbon to my MDI-application, the right border is not painted when maximized. The same is true for the bottom border. See attached pictures. Worth mentioning is that I can click in this "unpainted" area - like the desktop. Thus, the window is not trully maximized!</DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.bostream.nu/krisse/ribb&#111;n_maximized_gap.zip" target="_blank">http://www.bostream.nu/krisse/ribbon_maximized_gap.zip</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>If I remove my call to CreateRibbonBar(), the borders are painted correctly.</DIV><DIV>What can be wrong?</DIV><DIV>&nbsp;</DIV><DIV>// Before call to CreateRibbonBar():<BR>pCommandBars-&gt;SetTheme(xtpThemeRibbon);</DIV><P>BOOL CMainFrame::CreateRibbonBar()<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();</P><P>&nbsp;&nbsp;&nbsp; CMenu menu;<BR>&nbsp;&nbsp;&nbsp; menu.Attach(::GetMenu(m_hWnd));<BR>&nbsp;&nbsp;&nbsp; SetMenu(NULL);</P><P>&nbsp;&nbsp;&nbsp; CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars-&gt;Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));<BR>&nbsp;&nbsp;&nbsp; if (!pRibbonBar)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return FALSE;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;EnableDocking(0);<BR>&nbsp;&nbsp;&nbsp; //pRibbonBar-&gt;GetTabPaintManager()-&gt;m_bSelectOnButtonDown = FALSE;</P><P>&nbsp;&nbsp;&nbsp; CXTPControlPopup* pControlFile = (CXTPControlPopup*)pRibbonBar-&gt;AddSystemButton(ID_MENU_FILE);<BR>&nbsp;&nbsp;&nbsp; pControlFile-&gt;SetCommandBar(menu.GetSubMenu(0));</P><P>&nbsp;&nbsp;&nbsp; pControlFile-&gt;SetIconId(IDB_GEAR);<BR>&nbsp;&nbsp;&nbsp; UINT uCommand = {IDB_GEAR};<BR>&nbsp;&nbsp;&nbsp; pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDB_GEAR, &amp;uCommand, 1, xtpImageNormal);</P><P>&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;GetQuickAccessControls()-&gt;Add(xtpControlButton, ID_FILE_SAVE);<BR>&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;GetQuickAccessControls()-&gt;Add(xtpControlButton, ID_EDIT_UNDO);<BR>&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;GetQuickAccessControls()-&gt;Add(xtpControlButton, ID_FILE_PRINT);<BR>&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;GetQuickAccessControls()-&gt;CreateOriginalControls();</P><P><BR>&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;SetCloseable(FALSE);</P><P>&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;EnableFrameTheme();</P><P>&nbsp;&nbsp;&nbsp; return TRUE;<BR>}</P>]]>
   </description>
   <pubDate>Sat, 05 Aug 2006 07:41:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4744&amp;PID=14717&amp;title=mdiapp-with-ribbon-cannot-be-maximized#14717</guid>
  </item> 
 </channel>
</rss>