[fpc-pascal]win32 activate/close windows

adeli@adeli.fr Ldrevon at adeli.fr
Mon Oct 1 00:09:11 CEST 2001

From:           	"Lee, John" <LeeJ at logica.com>
To:             	"'fpc-pascal at deadlock.et.tudelft.nl'"
 	<fpc-pascal at deadlock.et.tudelft.nl>
Date sent:      	Mon, 3 Sep 2001 12:42:23 +0100 
Subject:        	[fpc-pascal]win32 activate/close windows
Send reply to:  	fpc-pascal at deadlock.et.tudelft.nl

> Does anyone have any working code or code snippets to
> activate/close/restore/iconise named windows in win32? (win95) - sorry if I
> asked this before- If not what is the general method/ algorithm? J

find the named windows if you know the class
FindWindow(Classname, WindowName: PChar): HWnd; else try with 

or if not check find it for all window that exist 
b:=GetWindow(a,GW_child); or b:=GetWindow(a,GW_hwndnext); depend 
of the type of window..
until find it;

Send a message to it !

> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Lionel Drevon			ldrevon at adeli.fr
Adeli				http://www.adeli.fr
618 Av. Gal de Gaulle		Tel 04 78 66 11 85
69760 Limonest			Fax 04 78 66 04 33

More information about the fpc-pascal mailing list