Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - how to disapear rightclick menu of CXTPToolBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to disapear rightclick menu of CXTPToolBar

 Post Reply Post Reply
Author
Message
chnuser View Drop Down
Newbie
Newbie


Joined: 07 May 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote chnuser Quote  Post ReplyReply Direct Link To This Post Topic: how to disapear rightclick menu of CXTPToolBar
    Posted: 07 May 2008 at 1:45am
Back to Top
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 2:33am
If this is the customization toolbar, you can use ...

Private Sub CommandBars1_ToolBarContextMenu(ByVal ToolBar As XtremeCommandBars.ICommandBar, ByVal ContextMenu As XtremeCommandBars.ICommandBar)
    ContextMenu.Controls.DeleteAll
End Sub


Obviously if you have your own context menus then you'll have to check the ID of the menu first.

Regards,

Rohan
Back to Top
chnuser View Drop Down
Newbie
Newbie


Joined: 07 May 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote chnuser Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 3:30am
thank U;
 
My environment: VC7.1 Toolkit pro 8.6.
Back to Top
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 3:37am
Yeah sorry, my code is VB, but presumably there is something similar under VC?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 3:46am
Hi,
Search in forum, there was some answers.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
chnuser View Drop Down
Newbie
Newbie


Joined: 07 May 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote chnuser Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 4:15am
Thanks......
 
Uses SetContextMenuPresent().
got it
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.