Use CFrameWnd as base of CChildFrame in MDI project
Hi,
I know I shall use CMDIFrameWnd as the base class of CChildFrame. But I'd like to have a test to use CFrameWnd as the base and it seems it works.
One reason is that with CMDIFrameWnd as base, it seems if one child frame is blocked by some function, the whole program will be blocked. But with CFrameWnd as base, it will not. I can operate other child even one of them is blocked.
However there are some problems:
1. All MDI related function will not work, such as MDIGetActive . Of course they will not. I will implement mine instead.
2. The main frame will be set inactive when a child frame is activated, the title bar is grayed, and when the main frame is activated, then child frame will deactivated.
I don't know why this problem happens. The child frame is made the child of the MDIClient window. I thought activate any child window will activate the parent window too ! Anyone knows how to solve this problem?