]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stubs/app.cpp
It's now possible to drag a listbox filled with entries
[wxWidgets.git] / src / stubs / app.cpp
index f54a6806e2e803415eefd05ee04a2e37b52a0f67..d879be671267196783a3333f91e08b6112c1cb1e 100644 (file)
 #include "wx/msgdlg.h"
 #include "wx/log.h"
 #include "wx/module.h"
+#include "wx/memory.h"
 
 #if USE_WX_RESOURCES
 #include "wx/resource.h"
 #endif
 
+#if USE_POSTSCRIPT
+#include "wx/postscrp.h"
+#endif
+
 #include <string.h>
 
-#if defined(__WIN95__) && !defined(__GNUWIN32__)
 extern char *wxBuffer;
 extern wxList wxPendingDelete;
 
@@ -145,7 +149,7 @@ int wxEntry( int argc, char *argv[] )
       return 0;
     };
     
-       wxTheApp = (* wxApp::GetInitializerFunction()) ();
+       wxTheApp = (wxApp*) (* wxApp::GetInitializerFunction()) ();
   };
   
   if (!wxTheApp) 
@@ -170,8 +174,6 @@ int wxEntry( int argc, char *argv[] )
   
   if (!wxTheApp->OnInit()) return 0;
 
-  wxTheApp->m_initialized = (wxTopLevelWindows.Number() > 0);
-  
   int retValue = 0;
   
   if (wxTheApp->Initialized()) retValue = wxTheApp->OnRun();