![]() |
Menu bar |
Post Reply
|
| Author | |
himanshu
Groupie
Joined: 04 January 2008 Status: Offline Points: 81 |
Post Options
Thanks(0)
Quote Reply
Topic: Menu barPosted: 08 January 2008 at 7:48am |
|
Hi
i have used CXTPCommandBar class to get the menu bar like this
CXTPCommandBar* pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINFRAME); Now i want to add some new menus to this menubar apart from the one i have with IDR_MAINFRAME at runtime How could i do this
thanks in advance
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2008 at 3:13pm |
|
Hi, try
CXTPControl* pControl = pMenuBar->GetControls()->Add(xtpControlPopup, -1);
pControl->SetCaption("New Menu");
etc.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
himanshu
Groupie
Joined: 04 January 2008 Status: Offline Points: 81 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2008 at 12:00am |
|
hi
there are two problems i faced with this
one is if i add another menu afetr "New Menu" only the latest one added is visible and not the first abd it is shown at the last.
How to make all the menu's visible and how to set their positions according to what we want.
Could we insert our newly added menus in between the menus that IDR_MAINFRAME offers.
Secondly how to insert a button inside this newly created menu "New Menu" .
thanks
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 January 2008 at 11:30am |
|
Hi,
All menus have to be visible. You make something wrong.
Please check methods of CXTPControl and CXTPControls classes.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |