Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to control the customization on commandbars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to control the customization on commandbars

 Post Reply Post Reply
Author
Message
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Topic: How to control the customization on commandbars
    Posted: 25 September 2006 at 6:02am
Hi,
 
I would like to allow the user to Customize the Context Menu that are available in my application when right clicking on my app objects, just like it is possible with Toolbars and MenuBar using the standard customization.
 
For the moment what I do is, at start of customization I create a dummy CXTPToolbar where I add all the Context menu I want to. Then the user organize them as he wants. Then after customization I will get back the organization of the context menus by exploring them, and I'll use that to recreate them after.
 
Now the problem I see is that  the user can drag/drop items from the dummy toolbar to the standard toolbar or menu bar and vice versa.
 
I want to prevent the user to be able to drag/drop a CXTPControl from the dummy toolbar to any other Context menu that from the one it comes, I just want to let him reorganize the inside of the Context menu, does anyone have an idea on how to do that?
 
I saw the OnCustomizeDragEnter and OnCustomizeDrop virtual functions but they are on CXTPControl class, so it won't help I think.
 
Please help, Thanks a lot
 
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.203 seconds.