>In Win9.x and NT, the following code will force an open window to the foreground if it isn't minimized. If the window is minimized, the Task Bar icon flashes. In Windows 2000, the only affect is that the Task Bar icon flashes (the Window isn't minimized and cannot be minimized)
>
> DECLARE INTEGER FindWindow IN Win32API STRING @lcWindowTitle, STRING otherstring
> lnAppActive = FindWindow(0,lcWindowName)
> IF lnAppActive > 0
> DECLARE INTEGER SetForegroundWindow IN Win32API Integer
> SetForegroundWindow(lnAppActive)
> ENDIF
>
>The window that is being called is an SDI form that is not maximized. I can't use the ShowWindow API function with the maximize parameter because it fully maxes the interface and skews all of the controls.
>
>Any ideas? Any work arounds?
>
>TIA
Use ShowWindow() with SW_NORMAL (1).
George
Ubi caritas et amor, deus ibi est