MDI Grandchild Windows?
Posted on 1998-08-08
I am porting a C Windows application to MFC. This application uses an interface where each MDI child window has several child windows of it's own. I'm looking for way to port this arrangement over to MFC, leveraging the most amount of MFC's functionality that I can. I'm aware that Windows does not support nested MDI Windows. I've experimented with creating CWnds inside an CMDIChildWnd's CView. This almost works Ok, except that the "grandchild" windows don't act like normal windows. They don't paint their title bars as the active window when they receive the focus and they don't pop to the front when activated by a mouse click down, only when the click is lifted.
My question: Should I continue with this approach and try to work around these problems or are there other options I should pursue to get this functionality. Any ideas on how to work around the problems with grandchild CWnd? I would like to avoid managing the focus and painting in my own code if possible, that is where the C program is getting into trouble.
Splitter windows have already been rejected, there would be too many panes and would be too cumbersome for the user to drag the borders around when they wanted to enlarge a particular pane of information. Movable, resizable windows are necessary.
Thanks in advance