Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » calling CExtCustomizeSite::EnableCustomization more than once Collapse All
Subject Author Date
Wilhelm Falkner May 16, 2005 - 4:35 PM

Hi,
I have a MultiDoc application with Doc/View support. Most all toolbars are located in Mainframe, but some documents have their own toolbars in their own frames. For getting also these toolbar customizeable, I have built in their frames in the ::OnCreate an call to CExtCustomizeSite::EnableCustomization. Seem to work fine, but past closing one of these special document, my application is corrupted (toolbar in mainframe now shoe Icon AND text, and if I open any menu the program crash). Is there any call for Disabling or stop of customisation, that I have to do, when closing this frames? Or what have I forgotten to call?
TIA Willi

Marcus Gebler Oct 27, 2005 - 11:34 AM

Hello Wilhelm,


I have the same scenario in my application and also the same problem.


Could you please tell me, how this problem was solved?


With best regards


 Marcus Gebler


 


 

Technical Support May 17, 2005 - 8:47 AM

The toolbars used by your external documents/views are ordinary toolbars and they cannot cause crashes. The crash may occur if your external documents/views remove command items from the command manager without removing command nodes from the customize site (i.e. from all the command trees). We can review and debug your source code if you send it to us. In any case we need additional information about your project and, at least, source code snippets which operate with the customize site.

Wilhelm Falkner May 17, 2005 - 9:00 AM

Does this mean: closing the document (and frame) do automatic remove command items from Command manager without removing from the customize site? if so, how can I remove the nodes from the customize site?
It is not the question about menu: the menu is in mainframe. But in my special frame I have 2 additional toolbar - for these I call the EnableCustomization. These Toolbar have IDs, nowhere else used.

Technical Support May 17, 2005 - 9:52 AM

The closing of a document in the MDI environment may change contents of the menu bar and does not remove anything from the command manager. We asked you about removing commands because we had supposed your code can do it. If it is not, then the bug hides somewhere outside Prof-UIS. In any case we are ready to help you. Could you send us a test project that demonstrates the problem?

Wilhelm Falkner May 17, 2005 - 5:02 PM

sended you a testproject
TIA Willi

Wilhelm Falkner May 21, 2005 - 7:34 AM

Thanks, you have done a great job! Now it’s working
Willi