rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) (10/10/89)
At this time I write an application that does heavily use child windows in its client area. Therefore I need to implement some "Stack" and "Tile" commands into our user interface. To resize and move the childs to form a stack is not a problem, it works fine if I do not zoom some windows to maximum size. If the user maximized one, I need to restore them first with ShowWindow(hWnd, SHOW_RESTORE) and then move/size them with SetWindowPos(..) or MoveWindow(..). This has the not very nice optical effect, that the window is first restored to the size/position it had before it was maximized and then is moved/sized to its new position in the windows stack. If the program runs on a slow 286 with a very high resolution graphics card (e.g. Wyse 1280x800) this is not acceptable. What can I do to restore a maximized window directly to a new position and size without the intermediate step ? The same problem occurs, if I want to open an Icon to a new position and size rather than to its previous size and position. And it's the same problem with toplevel windows (consider a screen tiler or stack utility). Has anybody a solution for this problem ? Thanks in advance, Kai Uwe Rommel Technische Universitaet Muenchen West Germany