I have an application with multiple CFrameWnd or derived windows: one for
the main window, another for an editor that can pop up that has its own
menu, toolbar, and splitter. Everything works fine (has for years) except
that the editor's menu cannot be accessed from the keyboard. Specifically,
pressing Alt+F pulls up the menu item from the main CFrameWnd window--even
when the editor window has the focus.
- I've tried calling BeginModalState() from the editor. This only seems to
set the modal state for the main window, oddly enough--even though I've
taken care to call this on the editor window.
- I've tried to subclass the editor window to have messages routed to it.
That just locks up the application.
- I've also tried Create()ing the editor window with the pParent argument
set to the main window as well as to NULL--same effect.
Anyone have any ideas. I need to be able to select items from the editor
window when it has the focus.
Thanks in Advance,
Adrian