<?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 : CanCloseFrame() never calls SaveModified()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CanCloseFrame() never calls SaveModified()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 02:09:41 +0000</pubDate>
  <lastBuildDate>Thu, 05 Apr 2012 16:01:11 +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=19641</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[CanCloseFrame() never calls SaveModified() :   In 2010 my partner and I embarked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19641&amp;PID=67960&amp;title=cancloseframe-never-calls-savemodified#67960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6270">alan.f.rice</a><br /><strong>Subject:</strong> 19641<br /><strong>Posted:</strong> 05 April 2012 at 4:01pm<br /><br />In 2010 my partner and I embarked on a major upgrade to our VC++ code suite, that included upgrading from VS6 to VS2010 and from CJ 6.0 to ToolkitPro 13.42.<br><br>We are having a problem where, when the user exits the main application, CFrameWnd::OnClose() will call CanCloseFrame(pFrame) in doccore.cpp, which loops through each open CView *pView.&nbsp; While inside the pView loop gets the parent frame, <br><br>&nbsp;&nbsp;&nbsp;&nbsp; CFrameWnd* pFrame = pView-&gt;GetParentFrame()<br><br>and checks to see if there are any document windows still active within the frame:&nbsp; <br><br>if (pFrame-&gt;m_nWindow &gt; 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;&nbsp;&nbsp;&nbsp;&nbsp; // more than one frame referring to us<br><br>There are several views with frames that have 1 or 2 documents, so the return is executed and the program exits fully without ever reaching the last line in CanCloseWindow() which is SaveModified().<br><br>Now, I'm not certain this problem manifested with the move from CJ60 to ToolKitPro, but we have had several other shutdown issues we have had to rework our code for and so there is an element of suspicion.<br><br>Anyone have any insight into this?<br><br>Thanks,<br><br>Al<br>]]>
   </description>
   <pubDate>Thu, 05 Apr 2012 16:01:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19641&amp;PID=67960&amp;title=cancloseframe-never-calls-savemodified#67960</guid>
  </item> 
 </channel>
</rss>