maximize a minimized exe

maximize a minimized exe

Postby Otto » Thu Oct 04, 2007 8:44 pm

How can I maximize a minimized 16 bit exe from another EXE.
Thanks in advance
Otto
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: maximize a minimized exe

Postby Enrico Maria Giordano » Thu Oct 04, 2007 9:20 pm

Try using FindWindow() and then ShowWindow().

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ken Wantz » Sun Oct 07, 2007 4: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
Ken Wantz
 
Posts: 45
Joined: Wed Nov 29, 2006 7:48 pm
Location: Toronto Canada

Postby Enrico Maria Giordano » Sun Oct 07, 2007 4:39 pm

This is a sample:

Code: Select all  Expand view  RUN
#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
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Enrico Maria Giordano » Sun Oct 07, 2007 4: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
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Sun Oct 07, 2007 5:28 pm

Ken,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ken Wantz » Sun Oct 07, 2007 7: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
Ken Wantz
 
Posts: 45
Joined: Wed Nov 29, 2006 7:48 pm
Location: Toronto Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 80 guests