|Anyway I can make an MDI parent without the form, ie the Visual Basic
|4.0 button bar the shrinks all windows when it itself is minimized?
What do you mean by "all windows"?
If you mean all of *your app's* windows, do this:
Choose one window as the master (i.e. the button bar), and make all other
windows in the app a child (NOT a midichild -- this has nothing to do with
multiple-document interfaces) of the master window by putting the following
in a bas module.
(NOTE: the declaration MUST be all on one line)
--------------------------------------------------
Global Const SWW_HPARENT = -8
Declare Sub SetWindowWord Lib "User" (ByVal hWnd%,
ByVal nCmd%,
ByVal nVal%)
--------------------------------------------------
Then put the following in the load event of each child form.
---------------------------------------------------------------------
Call SetWindowWord(Me.hWnd, SWW_HPARENT, NameOfTheMasterWindow.hWnd)
---------------------------------------------------------------------
You MUST MUST MUST MUST unload each child form in the unload event of the
master form.
David
--
____D__a__v__i__d_____B__e__r__g__a__r__t___________________________________