![]() |
Hide the "Customize..." item |
Post Reply ![]() |
Author | |
FrankC ![]() Groupie ![]() Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() Posted: 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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |