<?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 : Need to find which MDI DocTemplate owns popup?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Need to find which MDI DocTemplate owns popup?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 10:12:02 +0000</pubDate>
  <lastBuildDate>Wed, 17 Jan 2007 00:56:31 +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=6138</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[Need to find which MDI DocTemplate owns popup? : Hello,  Call GetCommandBars()-&amp;gt;GetActiveDocTemplate()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6138&amp;PID=19425&amp;title=need-to-find-which-mdi-doctemplate-owns-popup#19425</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6138<br /><strong>Posted:</strong> 17 January 2007 at 12:56am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Call GetCommandBars()-&gt;GetActiveDocTemplate() method instead.</DIV>]]>
   </description>
   <pubDate>Wed, 17 Jan 2007 00:56:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6138&amp;PID=19425&amp;title=need-to-find-which-mdi-doctemplate-owns-popup#19425</guid>
  </item> 
  <item>
   <title><![CDATA[Need to find which MDI DocTemplate owns popup? : Well, I solved it, but the method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6138&amp;PID=19422&amp;title=need-to-find-which-mdi-doctemplate-owns-popup#19422</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2349">MichaelN</a><br /><strong>Subject:</strong> 6138<br /><strong>Posted:</strong> 16 January 2007 at 6:00pm<br /><br />Well, I solved it, but the method seems a little "over the top", if there is a simpler way. <DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV>I derived a spoof class from CXTPControlBar which uses the CXTPCommandBar::Copy(0 method and has a public method that returns the value of the protected CXTPCommandBar::GetActiveDocTemplate().</DIV><DIV>&nbsp;</DIV><DIV>Inside CMainFrame::OnInitCommandsPopup(). I create an instance of my spoof class&nbsp;and pass it pCommandBar, then call get the DocTemplate from it.</DIV><DIV>&nbsp;</DIV><DIV>Is there a simpler way?</DIV><DIV>&nbsp;</DIV><DIV>Michael</DIV>]]>
   </description>
   <pubDate>Tue, 16 Jan 2007 18:00:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6138&amp;PID=19422&amp;title=need-to-find-which-mdi-doctemplate-owns-popup#19422</guid>
  </item> 
  <item>
   <title><![CDATA[Need to find which MDI DocTemplate owns popup? : I have an MDI app with multiple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6138&amp;PID=19421&amp;title=need-to-find-which-mdi-doctemplate-owns-popup#19421</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2349">MichaelN</a><br /><strong>Subject:</strong> 6138<br /><strong>Posted:</strong> 16 January 2007 at 5:43pm<br /><br />I have an MDI app with multiple Doc Templates. I need to know which Doc Template owns the popup, from inside CMainFrame::OnInitCommandsPopup().<DIV>&nbsp;</DIV><DIV>I can't get to CXTPCommandBar::GetActiveDocTemplate() because it is protected, but that sounds like what I need. Is there any other way to determine which doc template owns the popup from within the MainFrame handler?</DIV><DIV>&nbsp;</DIV><DIV>Thanks, </DIV><DIV>&nbsp;</DIV><DIV>Michael</DIV>]]>
   </description>
   <pubDate>Tue, 16 Jan 2007 17:43:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6138&amp;PID=19421&amp;title=need-to-find-which-mdi-doctemplate-owns-popup#19421</guid>
  </item> 
 </channel>
</rss>