FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour maximize a minimized exe
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
maximize a minimized exe
Posted: Thu Oct 04, 2007 08:44 PM

How can I maximize a minimized 16 bit exe from another EXE.
Thanks in advance
Otto

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: maximize a minimized exe
Posted: Thu Oct 04, 2007 09:20 PM

Try using FindWindow() and then ShowWindow().

EMG

Posts: 45
Joined: Wed Nov 29, 2006 07:48 PM
maximize a minimized exe
Posted: Sun Oct 07, 2007 04:08 PM

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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
maximize a minimized exe
Posted: Sun Oct 07, 2007 04:39 PM
This is a sample:

#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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
maximize a minimized exe
Posted: Sun Oct 07, 2007 04:41 PM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
maximize a minimized exe
Posted: Sun Oct 07, 2007 05:28 PM

Ken,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 45
Joined: Wed Nov 29, 2006 07:48 PM
maximize a minimized exe
Posted: Sun Oct 07, 2007 07:52 PM

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

Continue the discussion