<?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 access &#068;ocument in CMainFrame</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : how to access &#068;ocument in CMainFrame]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 05:05:39 +0000</pubDate>
  <lastBuildDate>Sat, 08 Jul 2006 23:09:47 +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=4402</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 access &#068;ocument in CMainFrame : thanks very much ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=14056&amp;title=how-to-access-document-in-cmainframe#14056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2094">lyric_li</a><br /><strong>Subject:</strong> 4402<br /><strong>Posted:</strong> 08 July 2006 at 11:09pm<br /><br />thanks very much<IMG height=17 alt=Smile src="http://forum.codejock.com/smileys/smiley1.gif" width=17 align=absMiddle border="0">]]>
   </description>
   <pubDate>Sat, 08 Jul 2006 23:09:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=14056&amp;title=how-to-access-document-in-cmainframe#14056</guid>
  </item> 
  <item>
   <title><![CDATA[how to access &#068;ocument in CMainFrame : CXTPFrameWnd is derived from CFrameWnd......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13609&amp;title=how-to-access-document-in-cmainframe#13609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4402<br /><strong>Posted:</strong> 13 June 2006 at 7:45am<br /><br /><P>CXTPFrameWnd is derived from CFrameWnd... so </P><P>C**Doc*&nbsp; pDoc= pMainFrame-&gt;GetActiveDocument();</P><P>will work.</P>]]>
   </description>
   <pubDate>Tue, 13 Jun 2006 07:45:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13609&amp;title=how-to-access-document-in-cmainframe#13609</guid>
  </item> 
  <item>
   <title><![CDATA[how to access &#068;ocument in CMainFrame : thank you very much,it works and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13606&amp;title=how-to-access-document-in-cmainframe#13606</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2094">lyric_li</a><br /><strong>Subject:</strong> 4402<br /><strong>Posted:</strong> 12 June 2006 at 11:28pm<br /><br /><P>thank you very much,it works</P><P>and how can I reference to Doc class by this pMainFrame pointer?</P><P>CMainFrame is derived from CXTPFrameWnd class which is not just like CFrameWnd class offered methods of accessing Doc class.</P><P>or there&nbsp;are some&nbsp;other ways to solve it?&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 12 Jun 2006 23:28:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13606&amp;title=how-to-access-document-in-cmainframe#13606</guid>
  </item> 
  <item>
   <title><![CDATA[how to access &#068;ocument in CMainFrame : Hi, must be  CMainFrame* pMainFrame=...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13605&amp;title=how-to-access-document-in-cmainframe#13605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4402<br /><strong>Posted:</strong> 12 June 2006 at 11:04pm<br /><br /><P>Hi,</P><P>must be </P><P>CMainFrame* pMainFrame= (CMainFrame*)AfxGetMainWnd()</P>]]>
   </description>
   <pubDate>Mon, 12 Jun 2006 23:04:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13605&amp;title=how-to-access-document-in-cmainframe#13605</guid>
  </item> 
  <item>
   <title><![CDATA[how to access &#068;ocument in CMainFrame : Hi everyone,  I&amp;#039;m a new...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13604&amp;title=how-to-access-document-in-cmainframe#13604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2094">lyric_li</a><br /><strong>Subject:</strong> 4402<br /><strong>Posted:</strong> 12 June 2006 at 10:31pm<br /><br /><P>Hi everyone, </P><P>I'm a new comer in using Xtreme Toolkit software.&nbsp; I meet a problem with the&nbsp;UI development now. I used the demo codes which implements with&nbsp;outlook-style UI for the framework. And I&nbsp;want to &nbsp;add some buttons in the toolbar to process some data in Doc.h, But I can't get the pointer to C**Doc class . Since CMainFrame&nbsp;class in this demo project is derived from CXTPFrameWnd, which seems not derived from MFC. So when I write </P><P>CWnd* pWnd= AfxGetMainWnd();</P><P>CMainFrame* pMainFrame= pWnd-&gt;GetParentFrame();</P><P>It doesn't wok well. pMainFrame always returns NULL. So I couldn't access Doc class by this way </P><P>C**Doc*&nbsp; pDoc= pMainFrame-&gt;GetActiveDocument();</P><P>How could I get the reference to the frame window for this situation ?Hope anyone could give me a hand.</P><P>Thanks&nbsp; very much,<IMG src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 12 Jun 2006 22:31:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4402&amp;PID=13604&amp;title=how-to-access-document-in-cmainframe#13604</guid>
  </item> 
 </channel>
</rss>