#include "wx/defs.h"
#include "wx/object.h"
+#include "wx/event.h"
class WXDLLEXPORT wxFrame;
class WXDLLEXPORT wxWindow;
virtual void Dispatch() ;
void OnIdle(wxIdleEvent& event);
+ void OnEndSession(wxCloseEvent& event);
+ void OnQueryEndSession(wxCloseEvent& event);
-// Generic
+ // Generic
virtual bool OnInit() { return FALSE; };
// No specific tasks to do here.
virtual int OnRun() { return MainLoop(); };
virtual int OnExit() { return 0; }
+ // called when a fatal exception occurs, this function should take care not
+ // to do anything which might provoke a nested exception!
+ virtual void OnFatalException() { }
+
inline void SetPrintMode(int mode) { m_printMode = mode; }
inline int GetPrintMode() const { return m_printMode; }
virtual bool ProcessMessage(WXMSG* pMsg);
void DeletePendingObjects();
bool ProcessIdle();
+#if wxUSE_THREADS
+ void ProcessPendingEvents();
+#endif
int GetComCtl32Version() const;
public: