Print Page | Close Window

Using multiple MRU lists

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2848
Printed Date: 30 May 2025 at 12:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using multiple MRU lists
Posted By: Bart D
Subject: Using multiple MRU lists
Date Posted: 06 September 2005 at 7:28am

In this forum, there are a few questions related to the use of multiple MRU lists.

I'm using an implementation that is copied from http://www.microsoft.com/msj/0899/c/c0899.aspx - http://www.microsoft.com/msj/0899/c/c0899.aspx

It is written by Paul DiLascia and (as expected) is of excellent quality.
However, it no longer works with the Toolkit Pro.

The problem seems to be with the following piece of code:

//////////////////
// Update the menu
//
void CRecentFileListEx::UpdateMenu(CCmdUI* pCmdUI)
{
   // If the menu is really a submenu, MFC can't handle it, so fake out
   // MFC by temporarily setting m_pMenu = m_pSubMenu.
   //
   CMenu* pMenu = pCmdUI->m_pMenu;
   if (pCmdUI->m_pSubMenu)
      pCmdUI->m_pMenu = pCmdUI->m_pSubMenu;
   CRecentFileList::UpdateMenu(pCmdUI);
   if (pCmdUI->m_pSubMenu)
      pCmdUI->m_pMenu = pMenu;
}

This code does not update the menus anymore. How do I get around this ?
Please do not just refer me to the Dynamic Popups example.
I'm still strugling with it...

Thanks

Bart

 




Replies:
Posted By: Oleg
Date Posted: 07 September 2005 at 2:45am

See modified sample

http://forum.codejock.com/uploads/oleg/2005-09-07_024445_MRU2.ZIP - 2005-09-07_024445_MRU2.ZIP

try to comment /uncommet "#include "XTToolkitPro.h" in stdafx.h and check difference.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Bart D
Date Posted: 08 September 2005 at 9:38am

Thanks Oleg !

That sure helped 

Bart



Posted By: subok
Date Posted: 22 January 2006 at 3:21pm
Hi Oleg,
I am unable to access the following link:
Originally posted by oleg oleg wrote:

See modified sample

http://forum.codejock.com/uploads/oleg/2005-09-07_024445_MRU2.ZIP - 2005-09-07_024445_MRU2.ZIP

try to comment /uncommet "#include "XTToolkitPro.h" in stdafx.h and check difference.



Can you assist?
Thanks,
Subok


Posted By: _Xks
Date Posted: 23 January 2006 at 6:19am
We are migrating our MFC based application to XToolKit Pro and we are having the same problem with submenus, but it seems that the sample you uploaded isn't there anymore. Can you please re-upload it?
Thanks.


Posted By: Oleg
Date Posted: 24 January 2006 at 1:50pm
https://forum.codejock.com/uploads/oleg/2006-01-24_135001_MRU2.ZIP - 2006-01-24_135001_MRU2.ZIP

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dawiebe
Date Posted: 03 June 2009 at 11:14am
Hi Oleg,

It appears that the sample isn't there again.  Would you kindly re-upload it?
Your help is greatly appreciated.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net