<?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 : Multiple-Top Level Documents Issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Multiple-Top Level Documents Issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 01:33:36 +0000</pubDate>
  <lastBuildDate>Wed, 02 Jan 2008 02:07:13 +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=9198</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[Multiple-Top Level Documents Issue : Hi, Thanks, we changed appwizard...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9198&amp;PID=29820&amp;title=multipletop-level-documents-issue#29820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9198<br /><strong>Posted:</strong> 02 January 2008 at 2:07am<br /><br /><P>Hi,</P><DIV>Thanks, we changed appwizard with this code. Thanks for help.</DIV>]]>
   </description>
   <pubDate>Wed, 02 Jan 2008 02:07:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9198&amp;PID=29820&amp;title=multipletop-level-documents-issue#29820</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple-Top Level Documents Issue : Here is the fix! Modify the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9198&amp;PID=29809&amp;title=multipletop-level-documents-issue#29809</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3618">mgoldshteyn</a><br /><strong>Subject:</strong> 9198<br /><strong>Posted:</strong> 30 December 2007 at 3:19pm<br /><br />Here is the fix! Modify the following code in the AppWizard generated CMainFrame::LoadFrame() <DIV>&nbsp;</DIV><DIV><FONT size=1><table width="99%"><tr><td><pre class="BBcode">// replace Exit option on File menu with Close for secondary windows<BR>if (AfxGetApp()-&gt;m_pMainWnd != this)<BR>{<BR>&nbsp; CMenu *pMenu = GetMenu();<BR>&nbsp; ASSERT(pMenu);<BR>&nbsp; pMenu-&gt;ModifyMenu(ID_APP_EXIT, MF_BYCOMMAND | MF_STRING, ID_FILE_CLOSE, _T("&amp;Close"));<BR>}<BR></pre></td></tr></table></FONT></DIV><DIV><FONT size=1>&nbsp;</DIV></FONT><DIV><FONT size=1><FONT size=2>with:</FONT></DIV><DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">// replace Exit option on File menu with Close for secondary windows</DIV><DIV>if (AfxGetApp()-&gt;m_pMainWnd != this)<BR>{<BR>&nbsp; // Find the File/Exit control nested deep in the command bar hierarchy<BR>&nbsp; CXTPControl *pAppExitControl=GetCommandBars()-&gt;FindControl(xtpControlButton, ID_APP_EXIT, TRUE /*Visible*/, TRUE /*Recursive*/);</DIV><DIV>&nbsp; //&nbsp;If File/Exit was found, change its&nbsp;name/behavior to File/Close<BR>&nbsp; if (pAppExitControl)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; // Change its ID and caption to that of File/Close<BR>&nbsp;&nbsp;&nbsp; pAppExitControl-&gt;SetID(ID_FILE_CLOSE);<BR>&nbsp;&nbsp;&nbsp; pAppExitControl-&gt;SetCaption(_T("&amp;Close"));<BR>&nbsp; }<BR>}<BR></pre></td></tr></table><BR></DIV><DIV><FONT size=2>Oleg or another admin, please comment on this solution. Also, for everyone's sake, fix the AppWizard generated code in the next release to use the code above or something similar.</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Sun, 30 Dec 2007 15:19:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9198&amp;PID=29809&amp;title=multipletop-level-documents-issue#29809</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple-Top Level Documents Issue : 1. Create a new Tookit Pro project...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9198&amp;PID=29807&amp;title=multipletop-level-documents-issue#29807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3618">mgoldshteyn</a><br /><strong>Subject:</strong> 9198<br /><strong>Posted:</strong> 30 December 2007 at 10:28am<br /><br />1. Create a new Tookit Pro project using App Wizard ((VS2005 or VS2008) and XTP 11.2.2) <DIV>2.&nbsp;Under Application Type, select Multiple top-level documents</DIV><DIV>3. Deselect Use Unicode libraries on that same page</DIV><DIV>4. Leave all other settings as is</DIV><DIV>5. Click Finish</DIV><DIV>6. Build and run the resultant application in Debug mode</DIV><DIV>7. When the app is running, select New Frame from the File menu</DIV><DIV>8. *KABOOM* to an assertion, since the new Frame has no menu, even though one was assigned at the time of window creation.</DIV><DIV>&nbsp;</DIV><DIV>Mike</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 30 Dec 2007 10:28:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9198&amp;PID=29807&amp;title=multipletop-level-documents-issue#29807</guid>
  </item> 
 </channel>
</rss>