Fixed module code

Fixed printing and preview
  Grid: event handlers MUST NOT BE VIRTUAL
  Corrected init code for all DCs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-11-25 17:55:08 +00:00
parent 6e7a2c38f2
commit 031b2a7b8d
12 changed files with 127 additions and 98 deletions

View File

@@ -20,6 +20,7 @@
#include "wx/font.h"
#include "wx/settings.h"
#include "wx/resource.h"
#include "wx/module.h"
#include "unistd.h"
@@ -424,6 +425,9 @@ int wxEntry( int argc, char *argv[] )
wxApp::CommonInit();
wxModule::RegisterModules();
if (!wxModule::InitializeModules()) return FALSE;
wxTheApp->OnInitGui();
// Here frames insert themselves automatically
@@ -442,6 +446,8 @@ int wxEntry( int argc, char *argv[] )
wxTheApp->OnExit();
wxModule::CleanUpModules();
wxApp::CommonCleanUp();
wxDELETE(wxTheApp);