Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3027

In mfc MDI project the onfilenew restores the existing fullscreen MDI child.

$
0
0
Dear All, I have a MFC MDI project where in on start a maximised MDI child window is created. Later the user can create more MDI children. It is observed that when more children (12 of them) are created by OnFileNew() the existing maximized MDI child is restored and briefly we see the restored mdi child window on screen. Is there a way to stop the restoring of the existing maximized MDI child window. I have got screenshot which shows the problem. Attachment 34849 (http://forums.codeguru.com/attachment.php?attachmentid=34849) Thanks and Regards, Rakesh What I have tried: I have tried creating the new children in hide mode (SW_HIDE). It didnt work. I tried creating the new children in very small size and outside the mdi main frame client area. I have tried putting the existing window on top ( Hide Copy Code pAnimView->SetWindowPos(&CWnd::wndTop, 0, 0, 0, 0,SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); ) and then making calls to OnFileNew(); Nothing worked.

Viewing all articles
Browse latest Browse all 3027

Latest Images

Trending Articles



Latest Images