1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| #include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
//------------------------------------------------------------------------------
#ifndef Titre_App
#define Titre_App "Titre de l'appli"
#endif
#include "Def_App.h"
//////////////////////////////////////////////////
// Innit Application :
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit() {
My_Win *Win = new My_Win(Titre_App , wxPoint(150, 150), wxSize(400, 500));
Win -> Show(true);
return (true);
}
//////////////////////////////////////////////////
// Innit Window :
My_Mod::My_Mod(wxWindow* parent , wxWindowID id , const wxPoint& pos , const wxSize& size , long style , const wxString& ) {
if ( this->IsEnabled() ) {
wxMessageBox("OK" , "Rechercher");
} else {
wxMessageBox("PO OK" , "Rechercher");
}
}
//////////////////////////////////////////////////
// Innit Frame :
My_Win::My_Win(const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxFrame(NULL, -1, title, pos, size, style) {
SetIcon(wxICON(monicone));
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE));
My_Mod *M = new My_Mod ( this , -1 , wxPoint(150, 150) , wxSize(400, 150) );
My_Win::AddChild(M);
} |
Partager