Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Minimize event
Message
 
To
18/03/2010 18:54:32
Valter Molina
Molina & Nardi Ltda
Brazil
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01455620
Message ID:
01455725
Views:
159
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform