ChildWindows'ChildWindows
Serge.Potteck@lune.cst.cnes.fr Wednesday, November 06, 1996 Environment : VC++ 1.51, Windows 3.11. In my MDI application, I would like to put each views'window relative to a document INTO ONE main CMDIChildWindow dedicated to the considered document. (when several documents are open, my MainWindows are as clear as the ground of a deep chesnut trees forest in the late autumn). I tried to overload CDocTemplate::CreateNewFrame, and to pass the adress of the main CMDIChildWindow to CMDIChildWnd::LoadFrame. The window is well drawn. But, of course, it's not OK when I try to move, resize or iconize the new window : its CMDIChildWnd parent is not able to handle its messages ! For example, I can't restore the window after iconization, it's not easy to clear the parent window, and so on ... What is the easiest way ? How could I derive a correct class from CMDIChildWnd ? Thanks a lot Serge Potteck
Soumik Sarkar -- soumik@eurolink.stpn.soft.net Friday, November 08, 1996 If you are trying to create a new ChildFrame, then you have to 1. Call LoadFrame with valid values in the CreateContext structure parameter. 2. Call InitialUpdataFrame. Soumik. On Wed, 6 Nov 1996 Serge.Potteck@lune.cst.cnes.fr wrote: > Environment : VC++ 1.51, Windows 3.11. > > In my MDI application, I would like to put > each views'window relative to a document INTO ONE > main CMDIChildWindow dedicated to the considered document. > (when several documents are open, > my MainWindows are as clear as the ground of a > deep chesnut trees forest in the late autumn). > > I tried to overload CDocTemplate::CreateNewFrame, and to pass > the adress of the main CMDIChildWindow to CMDIChildWnd::LoadFrame. > > The window is well drawn. But, of course, it's not OK when I try to > move, resize or iconize the new window : its CMDIChildWnd parent > is not able to handle its messages ! For example, I can't restore > the window after iconization, it's not easy to clear the parent window, > and so on ... > > What is the easiest way ? How could I derive a correct > class from CMDIChildWnd ? > > Thanks a lot > > Serge Potteck > > >
| Вернуться в корень Архива |