![]() |
How to remove a sub-menu item |
Post Reply
|
| Author | |
thodgson
Groupie
Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
Quote Reply
Topic: How to remove a sub-menu itemPosted: 23 May 2005 at 12:24pm |
|
The following code will remove a command that is just below a top level menu, e.g. File -> Open, however if you try and remove one level below that, an ASSERT is thrown. How do I remove a menu item (control) that is 2 levels down, e.g. File -> Open -> Something? OnInitCommandsPopup (CXTPCommandBar* pCommandBar){ CXTPControl* pCommandSubItem = pCommandList->FindControl(xtpControlButton, ID_TOOLS_SUBITEM, TRUE, TRUE); if (pCommandSubItem) { pCommandList->Remove(pCommandSubItem); } } Edited by thodgson |
|
|
Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1 Platform: Vista(x64)-SP1 Language: Visual C++ 6.0 Currently: Satisfied w/ Toolkit |
|
![]() |
|
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 |