
Q: document names in Window menu
Yes, it does some weird thing by iterating through the children of
the MDIFrameWnd's client area (which is itself a window). So if the
MDIChildWnd is hidden, it probably wouldn't show up. I have seen the code
to do this somewhere in the Microsoft KBase, but I can't recall where.
You may want to consider just maintaining your own list, and adding them
to a menu yourself. (Use CDocument::OnOpenDocument, CMenu::AppendMenu,
etc) I have always wondered why MFC doesn't provide a better
encapsulation of this list, and make it more easily available. - Doug S.
Quote:
> Hi. I'm having trouble with the titles of my documents in the Window
> menu in my MDI app. How does MFC determine which doc names to add to
> the "open window" list? I am hiding windows (when one is maximized,
> hide the rest -- haven't gotten it totally figured out yet, see my
> recent post) and when I do the "open window" list drops some of the
> document names. It is also possible to get the app to think that no
> documents are open when at least 2 still are, but have been hidden.
> Any help would be GREATLY appreciated!
> Thanks.
> Alan Lorence
> (remove all bugs from my address for email)