Hiding a MDI child form will cirrupt the z-order of the child window, that is a well
knows flaw of MS windows implmentation of MDI. MS has no intentation to fix this bug
even they recently has a different way of approaching MDI in office 2000 or later.
Basically you have two way todo
so
1. Win32 API, LockWindowsUpdate(). You can use it to create a child windows but
not showing it untill some process has beendo
ne.
2. Win32 API ShowWindows() with SW_HIDE flag. You must then
use SetWindowPos() to
restor the child window. You can use this way to hide MDI child form if it is
already created and displayed to the user.
Good luck!
很简单嘛!两个API函数搞定!
eg: 如果要隐藏Form1
1。ShowWindow(Form1.handle,SW_HIDE);
如果要恢复
2。SetWindowPos(form1.handle,HWND_TOP,0,0,0,0,SWP_NOSIZE OR SWP_NOMOVE OR SWP_SHOWWINDOW);