CMDIChildWnd* child MDIGetActive(); do { CString str; child-GetWindowText(str); TRACE(_T(\n***子窗口%s\n), str); child (CMDIChildWnd*)child-GetWindow(GW_HWNDNEXT); } while (child);来源MSDN 文档 CMDIFrameWnd::GetWindowMenuPopup