X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/387a3b02e02d91da6c5d4331b667d835e32c83b0..8ffd43c56b793781fde046aa532340b92a0067eb:/include/wx/msw/app.h?ds=inline diff --git a/include/wx/msw/app.h b/include/wx/msw/app.h index 4b17c47a42..c5cbcfcd06 100644 --- a/include/wx/msw/app.h +++ b/include/wx/msw/app.h @@ -18,6 +18,7 @@ #include "wx/defs.h" #include "wx/object.h" +#include "wx/event.h" class WXDLLEXPORT wxFrame; class WXDLLEXPORT wxWindow; @@ -57,7 +58,7 @@ class WXDLLEXPORT wxApp: public wxEvtHandler void OnEndSession(wxCloseEvent& event); void OnQueryEndSession(wxCloseEvent& event); -// Generic + // Generic virtual bool OnInit() { return FALSE; }; // No specific tasks to do here. @@ -67,6 +68,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; } @@ -139,6 +144,9 @@ public: virtual bool ProcessMessage(WXMSG* pMsg); void DeletePendingObjects(); bool ProcessIdle(); +#if wxUSE_THREADS + void ProcessPendingEvents(); +#endif int GetComCtl32Version() const; public: