<?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 List</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : MRU List]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 05:50:36 +0000</pubDate>
  <lastBuildDate>Wed, 29 Nov 2006 06:07:41 +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=5023</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 List : Hello,   Add this code to you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5023&amp;PID=17748&amp;title=mru-list#17748</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5023<br /><strong>Posted:</strong> 29 November 2006 at 6:07am<br /><br />Hello, <DIV></DIV><DIV></DIV>Add this&nbsp; code to you CYourApp<DIV>&nbsp;</DIV>ON_UPDATE_COMMAND_UI(ID_FILE_MRU_FILE1, OnUpdateMRUFiles)<BR><DIV>...</DIV><DIV>&nbsp;</DIV><DIV>void CCustomThemesApp::OnUpdateMRUFiles(CCmdUI* pCmdUI)<BR>{<BR>&nbsp;CXTPControl* pControl = CXTPControl::FromUI(pCmdUI);<BR>&nbsp;if (!pControl)<BR>&nbsp;&nbsp;return;</DIV><DIV>&nbsp;int nIndex = pControl-&gt;GetIndex() + 1;<BR>&nbsp;CXTPControls* pControls = pControl-&gt;GetControls();<BR>&nbsp;while (nIndex &lt; pControls-&gt;GetCount())<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPControl* pRecentFile = pControls-&gt;GetAt(nIndex);<BR>&nbsp;&nbsp;if (pRecentFile-&gt;GetID() &lt; ID_FILE_MRU_FILE1 || pRecentFile-&gt;GetID() &gt; ID_FILE_MRU_FILE1 + 16 )<BR>&nbsp;&nbsp;&nbsp;break;</DIV><DIV>&nbsp;&nbsp;pRecentFile-&gt;SetEnabled(FALSE);<BR>&nbsp;&nbsp;nIndex++;<BR>&nbsp;}</DIV><DIV>}</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 29 Nov 2006 06:07:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5023&amp;PID=17748&amp;title=mru-list#17748</guid>
  </item> 
  <item>
   <title><![CDATA[MRU List : Hi, I do have the same problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5023&amp;PID=17743&amp;title=mru-list#17743</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2372">sunilwarke</a><br /><strong>Subject:</strong> 5023<br /><strong>Posted:</strong> 29 November 2006 at 4:00am<br /><br /><P>Hi,</P><P>I do have the same problem and still trying to find the solution. Did you get any solution for your problem?</P><P>TR,</P><P>Sunil</P>]]>
   </description>
   <pubDate>Wed, 29 Nov 2006 04:00:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5023&amp;PID=17743&amp;title=mru-list#17743</guid>
  </item> 
  <item>
   <title><![CDATA[MRU List : Hi, I have a task of disabling...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5023&amp;PID=15611&amp;title=mru-list#15611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2326">nitquest</a><br /><strong>Subject:</strong> 5023<br /><strong>Posted:</strong> 11 September 2006 at 1:54pm<br /><br />Hi,<DIV>I have a task of disabling the MRU list in File Menu when in one view and enabling it in other. I created the menu in Mainframe OnCreate using :</DIV><DIV>&nbsp;</DIV><FONT size=2><P></FONT><FONT color=#ff00ff size=2>CXTPCommandBar</FONT><FONT size=2>* </FONT><FONT color=#ff00ff size=2>pMenuBar</FONT><FONT size=2> = </FONT><FONT color=#ff00ff size=2>pCommandBars</FONT><FONT size=2>-&gt;</FONT><FONT color=#ff00ff size=2>SetMenu</FONT><FONT size=2>(</FONT><FONT color=#ff00ff size=2>_T</FONT><FONT size=2>(</FONT><FONT color=#ff0000 size=2>"Menu Bar"</FONT><FONT size=2>), </FONT><FONT color=#ff00ff size=2>IDR_MAINFRAME</FONT><FONT size=2>); </P><DIV></DIV><P>however, when I try to diasble the MRU using this function, it wont work. Can someone please help?</P><DIV></DIV><DIV></DIV><FONT color=#800080 size=2><P>if</FONT><FONT size=2>(((</FONT><FONT color=#ff00ff size=2>CMainFrame</FONT><FONT size=2> *)</FONT><FONT color=#ff00ff size=2>AfxGetMainWnd</FONT><FONT size=2>())-&gt;</FONT><FONT color=#ff00ff size=2>GetDockingPaneManager</FONT><FONT size=2>()-&gt;</FONT><FONT color=#ff00ff size=2>IsPaneSelected</FONT><FONT size=2>(</FONT><FONT color=#ff00ff size=2>ID_VIEW_SCRIPT</FONT><FONT size=2>))</P><P></FONT><FONT color=#800080 size=2>return</FONT><FONT size=2>;</P><P></FONT><FONT color=#008000 size=2>// Disable the MRU list if in Jobs Pane</P></FONT><FONT size=2><P></FONT><FONT color=#ff00ff size=2>CXTPMenuBar</FONT><FONT size=2> *</FONT><FONT color=#ff00ff size=2>pMenuBar</FONT><FONT size=2> = ((</FONT><FONT color=#ff00ff size=2>CMainFrame</FONT><FONT size=2> *)</FONT><FONT color=#ff00ff size=2>AfxGetMainWnd</FONT><FONT size=2>())-&gt;</FONT><FONT color=#ff00ff size=2>GetCommandBars</FONT><FONT size=2>()-&gt;</FONT><FONT color=#ff00ff size=2>GetMenuBar</FONT><FONT size=2>(); </P><P></FONT><FONT color=#800080 size=2>if</FONT><FONT size=2>(</FONT><FONT color=#ff00ff size=2>pMenuBar</FONT><FONT size=2> != </FONT><FONT color=#ff00ff size=2>NULL</FONT><FONT size=2>) </P><P>{ <FONT color=#008000 size=2></P><P>CMenu* pMenu = pMenuBar-&gt;GetMenu();</P><P>int nItems = m_pRecentFileList-&gt;GetSize();</P><P>for (int n = 0; n &lt; nItems; n++)</P><P>pMenu-&gt;EnableMenuItem(ID_FILE_MRU_FILE1 + n, MF_BYCOMMAND |</P><P>MF_GRAYED);</P></FONT><FONT size=2><P>} </P><DIV></DIV><DIV></DIV>pMenu is always NULL. why? How do I access Menu?</FONT></FONT></FONT>]]>
   </description>
   <pubDate>Mon, 11 Sep 2006 13:54:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5023&amp;PID=15611&amp;title=mru-list#15611</guid>
  </item> 
 </channel>
</rss>