Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Adding Icon to MenuBar of MDI
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding Icon to MenuBar of MDI

 Post Reply Post Reply
Author
Message
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post Topic: Adding Icon to MenuBar of MDI
    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.
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2007 at 5:57am
Yes... Thank you so much.
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.047 seconds.