Re: Substituting the main menu bar(s)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



But even so, the program knows about two menus: one for when an MDI document
is open, and one for when one isn't. I need to replace both.

You can do that as well. Replace the menu handle in the doctemplate and
the one in mainframe (m_hMenuDefault ??). I did this long time ago and
it wasnt bad. I belive I posted an answer here as well several years
ago. I am not certain of m_hMenuDefault. Debug and see where does
mainframe stores its menu handle.

Unless you are doing in-place activation, I would ignore menu handles
for inplace activation etc. For a traditional app, m_hMenuShared should
be sufficient for a MDI application in addition to the menu handle for
mainframe(when no doc is active).

---
Ajay

.