Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Using multiple MRU lists
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using multiple MRU lists

 Post Reply Post Reply
Author
Message
Bart D View Drop Down
Newbie
Newbie


Joined: 27 August 2005
Location: Netherlands
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bart D Quote  Post ReplyReply Direct Link To This Post Topic: Using multiple MRU lists
    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

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

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2005 at 2:45am

See modified sample

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
Back to Top
Bart D View Drop Down
Newbie
Newbie


Joined: 27 August 2005
Location: Netherlands
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bart D Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2005 at 9:38am

Thanks Oleg !

That sure helped 

Bart

Back to Top
subok View Drop Down
Newbie
Newbie
Avatar

Joined: 16 November 2005
Location: South Africa
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote subok Quote  Post ReplyReply Direct Link To This Post 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

2005-09-07_024445_MRU2.ZIP

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



Can you assist?
Thanks,
Subok
Back to Top
_Xks View Drop Down
Newbie
Newbie


Joined: 23 January 2006
Location: Romania
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote _Xks Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2006 at 1:50pm
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dawiebe View Drop Down
Newbie
Newbie
Avatar

Joined: 03 June 2009
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote dawiebe Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.