![]() |
Customization of dynamic Menu |
Post Reply ![]() |
Author | ||||
yoavo ![]() Senior Member ![]() Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
![]() ![]() ![]() ![]() ![]() Posted: 19 July 2004 at 6:53am |
|||
|
||||
![]() |
||||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|||
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 |
![]() ![]() ![]() ![]() ![]() |
|||
|
||||
![]() |
||||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|||
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 |
![]() ![]() ![]() ![]() ![]() |
|||
|
||||
![]() |
||||
krulle ![]() Newbie ![]() Joined: 05 October 2004 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
|||
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 |