<?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 : how to create ribbon bar in dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : how to create ribbon bar in dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:37:02 +0000</pubDate>
  <lastBuildDate>Fri, 17 Aug 2012 05:02:58 +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=14784</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[how to create ribbon bar in dialog :  i think you should see again...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14784&amp;PID=68767&amp;title=how-to-create-ribbon-bar-in-dialog#68767</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7603">rebmem</a><br /><strong>Subject:</strong> 14784<br /><strong>Posted:</strong> 17 August 2012 at 5:02am<br /><br />i think you should see again OnInitDialog in DialogSample application. There is a function that plays a role very importantly. It's "RepositionControls" function. When i delete it, there is no command bar. May be it makes command bars appear.]]>
   </description>
   <pubDate>Fri, 17 Aug 2012 05:02:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14784&amp;PID=68767&amp;title=how-to-create-ribbon-bar-in-dialog#68767</guid>
  </item> 
  <item>
   <title><![CDATA[how to create ribbon bar in dialog : Hello,  Start from DialogSample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14784&amp;PID=51164&amp;title=how-to-create-ribbon-bar-in-dialog#51164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14784<br /><strong>Posted:</strong> 22 July 2009 at 4:03am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Start from DialogSample we have and replace standard Toolbar to RibbonBar.</DIV>]]>
   </description>
   <pubDate>Wed, 22 Jul 2009 04:03:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14784&amp;PID=51164&amp;title=how-to-create-ribbon-bar-in-dialog#51164</guid>
  </item> 
  <item>
   <title><![CDATA[how to create ribbon bar in dialog : HelloI recently downloaded the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14784&amp;PID=51139&amp;title=how-to-create-ribbon-bar-in-dialog#51139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5392">elizabeth.h1</a><br /><strong>Subject:</strong> 14784<br /><strong>Posted:</strong> 21 July 2009 at 7:21am<br /><br />Hello<br><br>I&nbsp; recently downloaded the evulation version of <div style=": left;"><br></div>ToolkitPro for Visual C++. And I am trying to create ribbon bar on dialog. I searched the documentation code samples but could not find nothing similar. I also searched the posts, with no luck. <br>Here is what I tried so far :<br><br><br>// This is DialogRibbonBar.h <br><br>#define CDialogSampleDlgBase CXTPDialogBase&lt;CXTResizeDialog&gt;<br><br>class CDialogsoRibbonDlg : public CDialogSampleDlgBase<br>{<br>// Construction<br>public:<br>&nbsp;&nbsp;&nbsp; CDialogsoRibbonDlg(CWnd* pParent = NULL); // standard constructor<br><br><br>&nbsp;&nbsp;&nbsp; enum { IDD = IDD_DIALOGSORIBBON_DIALOG }; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; protected:<br>&nbsp;&nbsp;&nbsp; virtual void DoDataExchange(CDataExchange* pDX);&nbsp;&nbsp;&nbsp; // DDX/DDV support&nbsp;&nbsp;&nbsp; <br><br><br>protected:&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; virtual BOOL OnInitDialog();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; DECLARE_MESSAGE_MAP()<br>};<br><br><br>/// This is DialogRibbonBar.cpp<br>#include "stdafx.h"<br>#include " DialogRibbonBar.h "<br><br><br><br>CDialogsoRibbonDlg::CDialogsoRibbonDlg(CWnd* pParent /*=NULL*/)<br>&nbsp;&nbsp;&nbsp; : CDialogSampleDlgBase(CDialogsoRibbonDlg::IDD, pParent)<br>{<br>&nbsp;&nbsp;&nbsp; <br>}<br><br>void CDialogsoRibbonDlg::DoDataExchange(CDataExchange* pDX)<br>{<br>&nbsp;&nbsp;&nbsp; CDialogSampleDlgBase::DoDataExchange(pDX);<br>&nbsp;&nbsp;&nbsp; <br>}<br><br>BEGIN_MESSAGE_MAP(CDialogsoRibbonDlg, CDialogSampleDlgBase)<br>&nbsp;&nbsp;&nbsp; //{{AFX_MSG_MAP(CDialogSampleDlg)<br>&nbsp;&nbsp;&nbsp; <br>END_MESSAGE_MAP()<br><br><br>/////////////////////////////////////////////////////////////////////////////<br>// CDialogSampleDlg message handlers<br><br>BOOL CDialogsoRibbonDlg::OnInitDialog()<br>{&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CDialogSampleDlgBase::OnInitDialog();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; VERIFY(InitCommandBars());&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<br>&nbsp;&nbsp; CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars-&gt;Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));<br>&nbsp;&nbsp;&nbsp;&nbsp; pRibbonBar-&gt;AddTab(L"Hello");<br>&nbsp;&nbsp; pRibbonBar-&gt;AddTab(L"Hello again");&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; return TRUE;&nbsp; // return TRUE&nbsp; unless you set the focus to a control<br>}<br><br><br>The code that calls the dialog is in the InitInstance of my dialog based application :<br><br>&nbsp;&nbsp;&nbsp; CDialogsoRibbonDlg dlg;<br>&nbsp;&nbsp;&nbsp; m_pMainWnd = &amp;dlg;<br>&nbsp;&nbsp;&nbsp; INT_PTR nResponse = dlg.DoModal()<br><br><br>Can someone review my code and tell my what I am missing , because the dialog box shows no ribbon bar at all.<br><br>Thank you<br><br><br>]]>
   </description>
   <pubDate>Tue, 21 Jul 2009 07:21:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14784&amp;PID=51139&amp;title=how-to-create-ribbon-bar-in-dialog#51139</guid>
  </item> 
 </channel>
</rss>