Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Minimize event
Message
 
À
18/03/2010 18:54:32
Valter Molina
Molina & Nardi Ltda
Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01455620
Message ID:
01455725
Vues:
160
LOCAL oForm As MyForm
oForm = CREATEOBJECT('MyForm')
oForm.Visible=.T.
READ EVENTS

DEFINE CLASS MyForm As Form

PROCEDURE Init
	= BINDEVENT(_screen, 'Resize', THIS, 'OnScreenResize')

PROCEDURE OnScreenResize
	DO CASE
	CASE _screen.WindowState= 1
		= MESSAGEBOX('Minimized!')
	CASE _screen.WindowState= 2
		= MESSAGEBOX('Maximized!')
	ENDCASE

PROCEDURE Destroy
	= UNBINDEVENTS(_screen)
	CLEAR EVENTS

ENDDEFINE
Tracking WM_SIZE messages for _screen.HWnd is another option.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform