Misc changes for DOS compatibility, plus added wxApp::CreateConfig

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-05-27 13:56:59 +00:00
parent f0b3249bf7
commit 6b0eb19fe8
8 changed files with 56 additions and 45 deletions

View File

@@ -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; };