]> Creatis software - crea.git/blob - appli/creaNewProject/NewProject/appli/template_wx_appli/winApp.cpp
*** empty log message ***
[crea.git] / appli / creaNewProject / NewProject / appli / template_wx_appli / winApp.cpp
1
2 #include <wx/frame.h>
3 class myApp : public wxApp
4 {
5 public:
6   bool OnInit( ); 
7   int  OnExit() { return true; }
8 };
9
10 IMPLEMENT_APP(myApp);
11
12 bool myApp::OnInit( )
13 {        
14   wxApp::OnInit();
15 #ifdef __WXGTK__
16   //See http://www.wxwindows.org/faqgtk.htm#locale
17   setlocale(LC_NUMERIC, "C");
18 #endif
19
20
21         wxWindows *frame = new wxFrame(this , _T("My window.."));
22         SetTopWindow(frame);  
23         frame->Show(true);
24
25    return true;
26 }
27