Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BindEvent to Form.Unload
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrats & ententes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01341442
Message ID:
01342004
Vues:
22
Hi John,

if WM_DESTROY is working for you, that's fine. However, unless your component needs to work in a variety of different frameworks I would tend to add this features to the form class itself. Right now you have code that is triggered when a window message is sent which is completely outside the form or any of the classes used in the form. This makes it hard to discover this code for anyone who doesn't know about this feature. You also might have a couple of situations where the window function is executed unexpectedly, for instance after an application error.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform