<?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 : MRU CFileList implementation incorrect.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : MRU CFileList implementation incorrect.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 08:53:24 +0000</pubDate>
  <lastBuildDate>Thu, 19 Jun 2008 15:28:21 +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=11116</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[MRU CFileList implementation incorrect. : Hi, Please search in this forum....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11116&amp;PID=37042&amp;title=mru-cfilelist-implementation-incorrect#37042</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11116<br /><strong>Posted:</strong> 19 June 2008 at 3:28pm<br /><br />Hi,<DIV>Please search in this forum. There was samples for Recent list.</DIV>]]>
   </description>
   <pubDate>Thu, 19 Jun 2008 15:28:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11116&amp;PID=37042&amp;title=mru-cfilelist-implementation-incorrect#37042</guid>
  </item> 
  <item>
   <title><![CDATA[MRU CFileList implementation incorrect. :  I am using the CodeJock Command...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11116&amp;PID=37037&amp;title=mru-cfilelist-implementation-incorrect#37037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4265">rramsay</a><br /><strong>Subject:</strong> 11116<br /><strong>Posted:</strong> 19 June 2008 at 2:58pm<br /><br />I am using the CodeJock Command bars and CFileList. Although when I update my CFileList in my mainApp it doesn't update the items in the "Recently Used Files" popup menu.&nbsp; It does enable the one default item. But does not change the text.<br><br>In the resource file I have:<br>...<br>IDR_MAIN MENU PRELOAD DISCARDABLE<br>BEGIN<br>&nbsp;&nbsp;&nbsp; POPUP "File"<br>&nbsp;&nbsp;&nbsp; BEGIN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "New"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MENUITEM "Open"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MENUITEM "Recent Files",&nbsp;&nbsp;&nbsp; ID_FILE_MRU_MYFILE1, GRAYED<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; POPUP "Recent Files 2"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BEGIN<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MENUITEM "Default",&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ID_FILE_MRU_NEWFILE1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>...<br><br>In the MyApp.cpp:<br>BEGIN_MESSAGE_MAP(MyApp, CWinApp)<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; ON_UPDATE_COMMAND_UI(ID_FILE_MRU_MYFILE1, OnUpdateMruMyFiles)<br>&nbsp;&nbsp;&nbsp; ...<br>END_MESSAGE_MAP( )<br>...<br>void MyApp::InitInstance()<br>{<br>...<br>&nbsp;&nbsp;&nbsp; pMRUmyFiles = new CRecentFileList( 0, L"MRU my files",<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; L"file_%d", NUM_MRU );<br>&nbsp;&nbsp;&nbsp; pMRUmyFiles-&gt;ReadList( );<br>...<br>}<br><br>void MyApp::OnUpdateMruMyFiles( CCmdUI* pCmdUI )<br>{<br>&nbsp;&nbsp;&nbsp; CString&nbsp;&nbsp;&nbsp;&nbsp; file1 = ( *pMRUmyFiles )&#091;0&#093;;<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if( file1.IsEmpty( ) )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pCmdUI-&gt;Enable( FALSE );<br>&nbsp;&nbsp;&nbsp; else if( pCmdUI-&gt;m_pSubMenu == NULL )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pMRUmyFiles-&gt;UpdateMenu( pCmdUI );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; CWinApp::OnUpdateRecentFileMenu( pCmdUI );<br>}<br><br>In the resource file snippet you can see that I have tried two different methods for creating the menu, neither of those work so must be something else I'm missing. Do I need to use CXTPRecentFileList instead of CRecentFileList? <br>]]>
   </description>
   <pubDate>Thu, 19 Jun 2008 14:58:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11116&amp;PID=37037&amp;title=mru-cfilelist-implementation-incorrect#37037</guid>
  </item> 
 </channel>
</rss>