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 » CExtCustomizeSite do not display right menu Collapse All
Subject Author Date
Wilhelm Falkner May 12, 2005 - 8:39 AM

Hi,
I have a multi-Doc application with doc/view support. When I use CExtCustomizeSite together with MenuInfoAdd for each document type, the application do NOT switch to the right menu (specific to this document) Without CExtCustomizeSite all works fine. What have I done worng???
TIA Willi

Technical Support May 12, 2005 - 9:20 AM

The CExtCustomizeSite::MenuInfoAdd() method allows you to specify CRuntimeClass objects for detecting document / view / MDI child frame window types of the active MDI child window. These runtime class information objects are used to automaticaly detect the menu line which should appear in the menu bar. It seems you forgot to specify runtime class information objects (or did this incorrectly) for all the document/view types used in your application. You can use only view class information or only document information. To make the menu line switch correctly, you need different document or different view classes for all the document types in your application.