What's the situation with sharing menu objects among multiple active window objects?
I've got a program that can keep multiple windows open for various purposes, but I'd like the "program menu" to stay constant for the user no matter which window happens to be selected.
I've been attaching the same NewMenu-generated menu to each window and making sure to check for WMHIMenuPick on every window input.
That seems to work ok, but is this an acceptable way to do it?
The notes in autodoc window_cl.doc under the heading "IDCMP VERIFY EVENTS" are a bit confusing, but maybe indicated this is suspect?
Quote:
If we manage to establish some cooperation between Window Class and Menu Class, ...
This cooperation seems pretty necessary if this type of menu sharing is supported. If the user program is to be relieved of the job of tracking such sharing the menu object may want to be notified when a window is closed or iconified. It will need to track its clients in order to correctly remove the menustrip before window closing and to know when the menu itself can be disposed.
Any thoughts?
Tom