X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/589f0e3e6070d8d1e6649b410f318ec2aa98ae4e..fd323a5e230f2b08227b307ff900698fb85d5519:/include/wx/msw/app.h diff --git a/include/wx/msw/app.h b/include/wx/msw/app.h index fd8fb8e815..e319a318a1 100644 --- a/include/wx/msw/app.h +++ b/include/wx/msw/app.h @@ -54,8 +54,10 @@ class WXDLLEXPORT wxApp: public wxEvtHandler 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. @@ -65,6 +67,10 @@ class WXDLLEXPORT wxApp: public wxEvtHandler 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; }