]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/init.h
addind nonowned window implementation
[wxWidgets.git] / include / wx / init.h
index a30de7522871f35b0448a8a2c78412821b981a64..5a66f42168d103d143f3e48acb4d3207b3fc9005 100644 (file)
@@ -12,7 +12,8 @@
 #ifndef _WX_INIT_H_
 #define _WX_INIT_H_
 
-#include "wx/wxchar.h"
+#include "wx/defs.h"
+#include "wx/chartype.h"
 
 // ----------------------------------------------------------------------------
 // wxEntry helper functions which allow to have more fine grained control
@@ -72,7 +73,10 @@ class WXDLLIMPEXP_BASE wxInitializer
 {
 public:
     // initialize the library
-    wxInitializer() { m_ok = wxInitialize(); }
+    wxInitializer(int argc = 0, wxChar **argv = NULL)
+    {
+        m_ok = wxInitialize(argc, argv);
+    }
 
     // has the initialization been successful? (explicit test)
     bool IsOk() const { return m_ok; }