From 2bfb6cffd86cb771918dde12e10704384d534714 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 27 Jul 2016 16:16:29 -0300 Subject: Projeto base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nenhum código implementado ainda. --- Project/main.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Project/main.cpp (limited to 'Project/main.cpp') diff --git a/Project/main.cpp b/Project/main.cpp new file mode 100644 index 0000000..81dccbc --- /dev/null +++ b/Project/main.cpp @@ -0,0 +1,25 @@ +#include +#include +#include "MainFrame.h" +#include + +// Define the MainApp +class MainApp : public wxApp +{ +public: + MainApp() {} + virtual ~MainApp() {} + + virtual bool OnInit() { + // Add the common image handlers + wxImage::AddHandler( new wxPNGHandler ); + wxImage::AddHandler( new wxJPEGHandler ); + + MainFrame *mainFrame = new MainFrame(NULL); + SetTopWindow(mainFrame); + return GetTopWindow()->Show(); + } +}; + +DECLARE_APP(MainApp) +IMPLEMENT_APP(MainApp) -- cgit