]> Creatis software - creaMiniTools.git/blob - appli/template_wx_appli/winApp.cpp
cb488f4d2b1f9f9d896baa62f8df812bc37c8baf
[creaMiniTools.git] / appli / template_wx_appli / winApp.cpp
1
2 // For compilers that support precompilation, includes "wx/wx.h".
3 #include "wx/wxprec.h"
4
5 #ifdef __BORLANDC__
6 #pragma hdrstop
7 #endif
8
9 #ifndef WX_PRECOMP
10 #include <wx/wx.h>
11 #endif
12
13 #include <wx/frame.h>
14 class myApp : public wxApp
15 {
16 public:
17   bool OnInit( ); 
18   int  OnExit() { return true; }
19 };
20
21 IMPLEMENT_APP(myApp);
22
23 bool myApp::OnInit( )
24 {        
25   wxApp::OnInit();
26 #ifdef __WXGTK__
27   //See http://www.wxwindows.org/faqgtk.htm#locale
28   setlocale(LC_NUMERIC, "C");
29 #endif
30
31
32         wxFrame *frame = new wxFrame(NULL , -1 ,_T("My window.."));
33         SetTopWindow(frame);  
34         frame->Show(true);
35
36    return true;
37 }
38