<?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 : Using a modified CXTPCommandBars class</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Using a modified CXTPCommandBars class]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 15:53:38 +0000</pubDate>
  <lastBuildDate>Sun, 15 Oct 2006 20:37: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=5297</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[Using a modified CXTPCommandBars class : DOH....  All I needed to do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5297&amp;PID=16546&amp;title=using-a-modified-cxtpcommandbars-class#16546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2426">robin_l</a><br /><strong>Subject:</strong> 5297<br /><strong>Posted:</strong> 15 October 2006 at 8:37pm<br /><br />DOH....<DIV>&nbsp;</DIV><DIV>All I needed to do was use the extended form of InitCommandBars</DIV><DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> </FONT></DIV><DIV><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!InitCommandBars(RUNTIME_CLASS(CModifiedXTPCommandBars)))</DIV><DIV><DIV></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; return</FONT><FONT size=2> -1;</FONT></DIV><DIV><FONT size=2></td></tr></table></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Easy when you know how.... <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Sun, 15 Oct 2006 20:37:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5297&amp;PID=16546&amp;title=using-a-modified-cxtpcommandbars-class#16546</guid>
  </item> 
  <item>
   <title><![CDATA[Using a modified CXTPCommandBars class : I need to use a modified CXTPCommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5297&amp;PID=16544&amp;title=using-a-modified-cxtpcommandbars-class#16544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2426">robin_l</a><br /><strong>Subject:</strong> 5297<br /><strong>Posted:</strong> 15 October 2006 at 6:56pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">I need to use a modified CXTPCommandBars class so it would seem appropriate to use a class derived from CXTPMDIFrameWnd (mine is an MDI app) and override InitCommandBars to allow the m_pCommandBars member to be created based on the modified class.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><A name=OLE_2></A><A name=OLE_1><SPAN style="mso-bookmark: OLE_2"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">In principle I’d like to do the following:<o:p></o:p></SPAN></SPAN></A></P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> </DIV><DIV>BOOL CMyXTPMDIFrameWnd::InitCommandBars(CRuntimeClass* pCommandBarsClass)<o:p></o:p></SPAN></DIV><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ASSERT(pCommandBarsClass-&gt;IsDerivedFrom(RUNTIME_CLASS(CModifiedXTPCommandBars)));<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>m_pCommandBars =<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(CModifiedXTPCommandBars *) pCommandBarsClass-&gt;CreateObject();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ASSERT(m_pCommandBars);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>m_pCommandBars-&gt;SetSite(<SPAN style="COLOR: blue">this</SPAN>);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>m_pCommandBars-&gt;EnableDocking();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> TRUE;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}</P><DIV></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><o:p><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Unfortunately, m_pCommandBars is declared private, so this code is not allowed. How can I achieve this?<o:p></o:p></SPAN></DIV></o:p></SPAN></DIV>]]>
   </description>
   <pubDate>Sun, 15 Oct 2006 18:56:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5297&amp;PID=16544&amp;title=using-a-modified-cxtpcommandbars-class#16544</guid>
  </item> 
 </channel>
</rss>