
keeping child windows on top of a parent
Quote:
> Hi Folks,
> I have an SDI application with one main form and a number of subsidary
> forms which are displayed from time to time. Does anyone know how to
> arrange it so that the subsidary windows are always on top of the main form
> but not nescessarily on top of any other application. Setting a window to
> be always on top is not the answer as it will be on top of other apps. Any
> help gratefully received!
> --
> Richard Martin, BP Research & Engineering
Try this:
Declare Sub SetWindowWord Lib "User" (ByVal hwnd%, ByVal nCmd%, ByVal
nVal%)
Global Const SWW_HPARENT = -8
Call SetWindowword(frmSub.hWnd, SWW_HPARENT, frmMain.hWnd)
- Chris Kyarsgaard
--
+----------------------------------------------------------------+
| Geronimo Development Corporation Phone: (800)457-6045 |
| 606 25th Ave. S., Suite 206 Fax: (320)259-9808 |
| St. Cloud, MN 56301 WWW: http://www.casefinder.com |
+----------------------------------------------------------------+