Page 1 of 1

maximize a minimized exe

Posted: Thu Oct 04, 2007 8:44 pm
by Otto
How can I maximize a minimized 16 bit exe from another EXE.
Thanks in advance
Otto

Re: maximize a minimized exe

Posted: Thu Oct 04, 2007 9:20 pm
by Enrico Maria Giordano
Try using FindWindow() and then ShowWindow().

EMG

Posted: Sun Oct 07, 2007 4:08 pm
by Ken Wantz
Enrico,

Where can further information be found regarding the use of these 2 functions? It is not in the 1.1 xHarbour manual nor the FiveWin Help files for 7.04.

Regards,

Ken

Posted: Sun Oct 07, 2007 4:39 pm
by Enrico Maria Giordano
This is a sample:

Code: Select all

#include "Fivewin.ch"


#define SW_MAXIMIZE 3


FUNCTION MAIN()

    LOCAL hWnd := FINDWINDOW( 0, "Main window title" )

    IF !EMPTY( hWnd )
        SHOWWINDOW( hWnd, SW_MAXIMIZE )
    ELSE
        ? "Window not found"
    ENDIF

    RETURN NIL
EMG

Posted: Sun Oct 07, 2007 4:41 pm
by Enrico Maria Giordano
Ken Wantz wrote:Enrico,

Where can further information be found regarding the use of these 2 functions? It is not in the 1.1 xHarbour manual nor the FiveWin Help files for 7.04.

Regards,

Ken
Both functions are documented inside fwfun.chm.

EMG

Posted: Sun Oct 07, 2007 5:28 pm
by Antonio Linares
Ken,

Besides Enrico's example, please review FWH\samples\ShowApp.prg also

Posted: Sun Oct 07, 2007 7:52 pm
by Ken Wantz
Thanks Enrico and Antonio,

Another stupid leson learned. I was doing a search for FIND expecting all possibilities to be listed. Instead, I got 5 completely different titles.

That will teach me that shortcuts do not always work.

Regards,

Ken