X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..cdb7168d80d58c0f608b97f323518ebbf7a4bada:/include/wx/msw/app.h?ds=sidebyside diff --git a/include/wx/msw/app.h b/include/wx/msw/app.h index 8fe8d12248..15eeaca9a1 100644 --- a/include/wx/msw/app.h +++ b/include/wx/msw/app.h @@ -42,6 +42,7 @@ bool WXDLLEXPORT wxYield(void); // Represents the application. Derive OnInit and declare // a new App object to start application +class wxConfig; class WXDLLEXPORT wxApp: public wxEvtHandler { DECLARE_DYNAMIC_CLASS(wxApp) @@ -70,6 +71,10 @@ class WXDLLEXPORT wxApp: public wxEvtHandler // No specific tasks to do here. virtual bool OnInitGui(void) { return TRUE; } + // override this function to create a global wxConfig object of different + // than default type (right now the default implementation returns NULL) + virtual wxConfig *CreateConfig(void) { return NULL; } + // Called to set off the main loop virtual int OnRun(void) { return MainLoop(); }; virtual int OnExit(void) { return 0; };