<?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 in dialog - 2 questions</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon in dialog - 2 questions]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 15:53:54 +0000</pubDate>
  <lastBuildDate>Fri, 29 Jun 2007 01:10:25 +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=7449</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 in dialog - 2 questions : Hello, Attach new sample, I not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=24029&amp;title=ribbon-in-dialog-2-questions#24029</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 29 June 2007 at 1:10am<br /><br /><DIV>Hello,</DIV><DIV>Attach new sample, I not sure what do you see.</DIV>]]>
   </description>
   <pubDate>Fri, 29 Jun 2007 01:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=24029&amp;title=ribbon-in-dialog-2-questions#24029</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon in dialog - 2 questions : Hi Oleg,  It&amp;#039;s much better...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=24001&amp;title=ribbon-in-dialog-2-questions#24001</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3075">irekz</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 28 June 2007 at 4:14am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>It's much better now but&nbsp;problem is not fully resolved.</DIV><DIV>&nbsp;</DIV><DIV>In this dialog there is no status bar and still there is a space reserved at the bottom and I can't place any controls there. If you don't want status bar this space is wasted.</DIV><DIV>&nbsp;</DIV><DIV>Is there a way to get rid of this limitation and put controls to the bottom of dialog (I would like list box to ocupy it with SetResize(IDC_LIST, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);) ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your help and sorry for all those questions <img src="https://forum.codejock.com/smileys/smiley9.gif" border="0"></DIV><DIV>Irek</DIV>]]>
   </description>
   <pubDate>Thu, 28 Jun 2007 04:14:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=24001&amp;title=ribbon-in-dialog-2-questions#24001</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon in dialog - 2 questions : Hi,  Here fixed dialog code:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23990&amp;title=ribbon-in-dialog-2-questions#23990</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 27 June 2007 at 3:38pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Here fixed dialog code: <a href="https://forum.codejock.com/uploads/20070627_153820_t5.zip" target="_blank">uploads/20070627_153820_t5.zip</A></DIV>]]>
   </description>
   <pubDate>Wed, 27 Jun 2007 15:38:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23990&amp;title=ribbon-in-dialog-2-questions#23990</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon in dialog - 2 questions : Hi Oleg!    oleg wrote: catch...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23986&amp;title=ribbon-in-dialog-2-questions#23986</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3075">irekz</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 27 June 2007 at 2:19pm<br /><br /><DIV>Hi Oleg!</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /></DIV><DIV>catch WM_CTLCOLOR for dialog and return some brush.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Do I have to hardcode color or is there a way to return a brush that match current skin?</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /></DIV><DIV>3. try to switch order where you enable frame/set resize options.</DIV><DIV></td></tr></table> </DIV><DIV>&nbsp;</DIV><DIV>Could not make it work. I attached a very simple dialog application that demonstrates this problem - can you check it and tell me what's wrong? (could be a good idea to add CDialog based ribbon to toolkit samples).</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot for your time and help!</DIV><DIV>Irek</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20070627_141832_test.zip" target="_blank">uploads/20070627_141832_test.zip</A></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 27 Jun 2007 14:19:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23986&amp;title=ribbon-in-dialog-2-questions#23986</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon in dialog - 2 questions : Hi,  oh you mean dialog background...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23956&amp;title=ribbon-in-dialog-2-questions#23956</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 26 June 2007 at 3:31pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>oh you mean dialog background ( I thought frame).... EnableFrameTheme</DIV><DIV>&nbsp;change only Frame - if you need change background - catch WM_CTLCOLOR for dialog and return some brush.</DIV><DIV>&nbsp;</DIV><DIV>3. try to switch order where you enable frame/set resize options.</DIV>]]>
   </description>
   <pubDate>Tue, 26 Jun 2007 15:31:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23956&amp;title=ribbon-in-dialog-2-questions#23956</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon in dialog - 2 questions : Hi Oleg :)  1) Calling RecalcLayout...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23954&amp;title=ribbon-in-dialog-2-questions#23954</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3075">irekz</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 26 June 2007 at 3:18pm<br /><br /><DIV>Hi Oleg :)</DIV><DIV>&nbsp;</DIV><DIV>1) Calling RecalcLayout helps - thanks!</DIV><DIV>&nbsp;</DIV><DIV>2)&nbsp; Yes I'm calling pRibbonBar-&gt;EnableFrameTheme()</DIV><DIV>&nbsp;</DIV><DIV>In attachment there is a screen shoot of my dialog and cpp file with dialog code - maybe that will help.</DIV><DIV>&nbsp;</DIV><DIV>3) I noticed also one other thing: there is an empty space in the bottom of the dialog. It looks like space for status bar (I don't have one in my app).</DIV><DIV>Any way to get rid of it? (in dialog template edit control is placed to take all remaning space and it has: SetResize(IDC_BODY, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);</DIV><DIV>&nbsp;</DIV><DIV>uploads/20070626_151244_test.zip</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot for your great support!</DIV><DIV>Kind regards!</DIV><DIV>Irek</DIV>]]>
   </description>
   <pubDate>Tue, 26 Jun 2007 15:18:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23954&amp;title=ribbon-in-dialog-2-questions#23954</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon in dialog - 2 questions : Hello,  1. Did you call pRib...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23932&amp;title=ribbon-in-dialog-2-questions#23932</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 26 June 2007 at 1:02am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>1. Did you call pRibbonBar-&gt;EnableFrameTheme() ?</DIV><DIV>&nbsp;</DIV><DIV>2. Try to call pRibbonbar-&gt;OnRecalcLayout() in the end of method.</DIV>]]>
   </description>
   <pubDate>Tue, 26 Jun 2007 01:02:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23932&amp;title=ribbon-in-dialog-2-questions#23932</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon in dialog - 2 questions : Hi to all :)  I have 2 questions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23923&amp;title=ribbon-in-dialog-2-questions#23923</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3075">irekz</a><br /><strong>Subject:</strong> 7449<br /><strong>Posted:</strong> 25 June 2007 at 4:07pm<br /><br />Hi to all :)<DIV>&nbsp;</DIV><DIV>I have 2 questions regarding ribbon in CXTPDialogBase&lt;CXTResizeDialog&gt; based dialog:</DIV><DIV>&nbsp;</DIV><DIV>Q1) Ribbon in dialog and frame looks OK but dialog itself is not painted with blue background - is there a way to fix it?</DIV><DIV>&nbsp;</DIV><DIV>Q2) My application presents a list of attachments in one of the tabs of ribbon. I need to modify it in run time. All the API seems to be there and works OK except content of ribbon is not redrawn (you need to change tabs to force redraw).</DIV><DIV>&nbsp;</DIV><DIV>Here is my sample code:</DIV><DIV>&nbsp;</DIV><DIV>void CSendEmailDlg::RefreshListOfAttachments()<BR>{<BR>&nbsp; CXTPRibbonGroup* pGrp = m_pTabAttachments-&gt;FindGroup( ID_ATTACHED_FILES_GROUP );<BR>&nbsp; if( pGrp == NULL )<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; pGrp = m_pTabAttachments-&gt;AddGroup( ID_ATTACHED_FILES_GROUP );<BR>&nbsp; }</DIV><DIV>&nbsp; pGrp-&gt;RemoveAll();</DIV><DIV>&nbsp;for(int ix=0; ix&lt;(int)vAttachmentList.size(); ix++)<BR>&nbsp;{<BR>&nbsp;&nbsp; CXTPControl* pCtrl = pGrp-&gt;Add(xtpControlButton, IDC_ATTACH_REMOVE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pCtrl-&gt;SetCaption( vAttachmentList&#091;ix&#093; );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pCtrl-&gt;SetTag(ix);<BR>&nbsp;}</DIV><DIV>&nbsp; CString strCaption;<BR>&nbsp; strCaption.Format( _T("No of attachments: %d"), vAttachmentList.size() );<BR>&nbsp; pGrp-&gt;SetCaption( strCaption );<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Any tips how to fix it (I triend to play with simple Invalidate() but no luck)?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your excelent support!</DIV><DIV>Kind regards,</DIV><DIV>Irek</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 25 Jun 2007 16:07:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7449&amp;PID=23923&amp;title=ribbon-in-dialog-2-questions#23923</guid>
  </item> 
 </channel>
</rss>