![]() |
Adding menu items to specified subentries |
Post Reply
|
| Author | |
VeRtEX0815
Newbie
Joined: 01 November 2004 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Adding menu items to specified subentriesPosted: 01 November 2004 at 4:59am |
|
Hi xtp support team, I am trying to add a new control(menu entry) to a given control(entry). File->Recent Files it is called. I want to add and remove recent file menu entries. Currently i do it like the following: CXTPControls* menuCtrl = pMenuBar->GetControls(); I firct of all the the menu bar controls and try to find the given control the ID_FILE_RECENTFILES, which works. But how to go on then? CXTPControlButton* pControl = (CXTPControlButton*)menuCtrl->Add(xtpControlButton, ID_FILE_RECENTFILES_NOFILE1, _T(app->mRecentFileNames[0].AsChar()), 2); How can i do that? |
|
![]() |
|
VeRtEX0815
Newbie
Joined: 01 November 2004 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 November 2004 at 8:33am |
|
anyone?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 November 2004 at 12:11pm |
|
I think see \Samples\CommandBars\DynamicPopups\ can help. |
|
|
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 |