![]() |
Hide the "Customize..." item |
Post Reply
|
| Author | |
FrankC
Groupie
Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: Hide the "Customize..." itemPosted: 16 October 2008 at 5:14pm |
|
There are menu items inside the toolbar customize popup menu, “Standard” and “Customize…”. How can I remove the “Customize…” item while keeping the “Standard” item? Thanks, Frank |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 October 2008 at 2:30am |
|
Just don't catch XTP_ID_CUSTOMIZE message. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
FrankC
Groupie
Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 October 2008 at 9:41am |
|
I tried not catching XTP_ID_CUSTOMIZE, while this caused both the Standard and Customize... items disenabled. While what is required is to keep the Standard enabled while remove the Customize item.
Thanks,
Frank
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 October 2008 at 6:43am |
|
Hi,
Its not easy :(
See GetAddOrRemovePopup method. You can create class derived from CXTPCommandBars and override this method.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
FrankC
Groupie
Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 October 2008 at 10:09am |
|
Thanks Oleg.
I got following idea from you other postings, and it works.
void CMainFrame::OnUpdateCustomize(CCmdUI* pCmdUI)
{ CXTPPopupBar* pPopupBar = (CXTPPopupBar*)pCmdUI->m_pOther; if(pPopupBar) { CXTPControl* pControl = pPopupBar->GetControl(1); if(pControl) pControl->SetVisible(FALSE); return; } } |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 October 2008 at 2:11am |
|
Right :) Forgot about this method :)
|
|
|
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 |