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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user