Make CXTPMenuBar::SwitchMDIMenu virtual
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10227
Printed Date: 01 March 2025 at 9:09am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Make CXTPMenuBar::SwitchMDIMenu virtual
Posted By: Dmitry
Subject: Make CXTPMenuBar::SwitchMDIMenu virtual
Date Posted: 14 April 2008 at 9:25pm
Hi,
The CXTPMenuBar currently supports multiple MDI menus via different document templates.
However, it does not support all possible MDI menus of the same template, like the pTemplate->m_hMenuInPlaceServer & pTemplate->m_hMenuEmbedding etc. Currently, it only supports m_hMenuDefault and m_hMenuShared per document template.
Ie, the CXTPMenuBar::SwitchMDIMenu recieves the HMENU from the MFC code in CMDIChildWnd::OnUpdateFrameMenu, and one of the possible values of hMenuAlt is pDoc->GetDefaultMenu(), which can be COleServerDoc::GetDefaultMenu().
Now, Codejock can endeavour to support all of them, or it can make our (the client's) life easier by making CXTPMenuBar::SwitchMDIMenu virtual. This will also allow further dynamic customization at loading time of the menu specified by MFC.
So, could you please make
void CXTPMenuBar::SwitchMDIMenu(HMENU hMenu)
virtual?
Kind Regards,
Dmitry
|
Replies:
Posted By: Oleg
Date Posted: 15 April 2008 at 1:20am
Hello,
Changed. Thanks.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: Dmitry
Date Posted: 21 April 2008 at 12:50am
Thank you for the quick response.
Which version will this be available in?
Dmitry
|
Posted By: Oleg
Date Posted: 21 April 2008 at 1:30am
Hello,
In next 12.0 release.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
|