![]() |
Customization of dynamic Menu |
Post Reply
|
| Author | ||||
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Topic: Customization of dynamic MenuPosted: 19 July 2004 at 6:53am |
|||
|
||||
![]() |
||||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 July 2004 at 8:52am |
|||
|
You also can create categories and items of customize dialog dynamically: CXTPControls* CXTPCustomizeCommandsPage::InsertCategory(CString strCategory, int nIndex = -1); CXTPControls::Add
|
||||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||||
![]() |
||||
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 July 2004 at 9:01am |
|||
|
||||
![]() |
||||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 July 2004 at 11:36am |
|||
|
pMenuBar->GetControls()->GetCount() pMenuBar->GetControl(i)->GetCaption(). |
||||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||||
![]() |
||||
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 July 2004 at 11:18am |
|||
|
||||
![]() |
||||
krulle
Newbie
Joined: 05 October 2004 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 October 2004 at 9:28am |
|||
|
My code fills the commands page even if you have dynamic menus, hope it will help. It could be a good idea to make a recursive version of my code if you need also need the submenus included in the list. void CMainFrame::OnCustomize() // instanciate the customize dialog // add the options page to the customize dialog. // add the commands page to the customize dialog. CXTPControls* pPageControls = pCommands->InsertCategory(caption); for(int j = 0; j < pSourceControls->GetCount(); j++) pCommands->InsertAllCommandsCategory(); // display the customize dialog. |
||||
![]() |
||||
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 |