Print Page | Close Window

Adding Icon to MenuBar of MDI

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=7981
Printed Date: 13 November 2025 at 11:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding Icon to MenuBar of MDI
Posted By: hikaroute
Subject: Adding Icon to MenuBar of MDI
Date Posted: 12 September 2007 at 4:55am
Like the old version 6 of Visual C++ that have the icon of the childFrm in the Menubar of MDI Application when resize the ChildFrm down, the icon in menubar will move out suddenly.  I want to know how to add the icon of childfrm to the menu.  I know we can use the tab toolbar for showing but I still think having this icon is better we don't use it.
 
Thank you.
 



Replies:
Posted By: Oleg
Date Posted: 12 September 2007 at 5:30am
Hi,
 
Think you mean xtpFlagAddMDISysPopup flag. Please try this code
 
CXTPMenuBar* pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINFRAME);
 pMenuBar->SetFlags(xtpFlagAddMDISysPopup);


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


Posted By: hikaroute
Date Posted: 12 September 2007 at 5:57am
Yes... Thank you so much.



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