- static void RegisterModule(wxModule* module);
- static bool RegisterModules(void);
- static bool InitializeModules(void);
- static void CleanUpModules(void);
+ // called on program startup
+
+ virtual bool OnInit() = 0;
+
+ // called just before program termination, but only if OnInit()
+ // succeeded
+
+ virtual void OnExit() = 0;
+
+ static void RegisterModule(wxModule *module);
+ static void RegisterModules();
+ static bool InitializeModules();
+ static void CleanUpModules();
+
+ // used by wxObjectLoader when unloading shared libs's
+
+ static void UnregisterModule(wxModule *module);