diff horori/mover/src/main.cpp @ 0:aaaa401818a1 draft

first commit.
author pyon <pyon@macmini>
date Mon, 24 May 2021 21:32:58 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/horori/mover/src/main.cpp	Mon May 24 21:32:58 2021 +0900
@@ -0,0 +1,37 @@
+// Filename   : main.cpp
+// Last Change: 2020-04-03 金 10:57:52.
+//
+#include "main.h"
+#include "mover.h"
+
+IMPLEMENT_APP(MyApp)
+
+IMPLEMENT_CLASS(MyApp, wxApp)
+
+MyApp::MyApp()
+{
+}
+MyApp::~MyApp()
+{
+}
+
+bool MyApp::OnInit()
+{
+    if (!wxApp::OnInit()) return false;
+
+    wxImage::AddHandler(new wxJPEGHandler);
+    wxImage::AddHandler(new wxTIFFHandler);
+    wxImage::AddHandler(new wxPNGHandler);
+
+	MoveFrame *frame = new MoveFrame(NULL, wxID_ANY, wxT("Mover"), wxDefaultPosition, wxSize(1400, 1000), wxDEFAULT_FRAME_STYLE);
+	frame->Show(true);
+	frame->Raise();
+
+    return true;
+}
+
+int MyApp::OnExit()
+{
+    return 0;
+}
+