简体   繁体   English

尽管打开了子窗口,MFC菜单项“ window:windows”仍显示空列表

[英]MFC Menu item 'window:windows' presents empty list despite open child windows

I'm maintaining a aged c++ unmanaged MFC multiple-document program which is now using MFC version 10, compiled with MSVC 2010. 我正在维护一个陈旧的C ++非托管MFC多文档程序,该程序现在使用由MSVC 2010编译的MFC版本10。

My problem is with the 'Window' menu. 我的问题是“窗口”菜单。 When there are one or more child windows open, the windows appear in a list in the window menu, with the check mark next to the currently active window. 当打开一个或多个子窗口时,这些窗口将显示在窗口菜单的列表中,并且当前活动窗口旁边带有复选标记。 Underneath that is a menu item 'Windows...'. 在其下方是菜单项“ Windows ...”。 When that is chosen, a dialog box appears with an empty list, no matter how many child windows are open. 选择该选项后,无论打开了多少子窗口,都会出现一个对话框,其中有一个空列表。

I would like this to either work properly or if I cannot solve the problem, it may be acceptable to simply remove this menu item from the window menu. 我希望它可以正常工作,或者如果我不能解决问题,则可以简单地从窗口菜单中删除此菜单项。 However, I don't see any way to do that either. 但是,我也看不到任何方法。

My problem is that frame window for the children were not derived from CMDIChildWndEx. 我的问题是孩子的框架窗口不是从CMDIChildWndEx派生的。 It was an easy change, and now my windows show up in the list of windows. 这是一个简单的更改,现在我的窗口显示在窗口列表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM