Mercurial > mercurial > hgweb_golang.cgi
comparison src/kaigo/horori/alloc/main.cpp @ 65:0369656be06c default tip
many changes.
author | pyon@macmini |
---|---|
date | Fri, 20 May 2022 06:30:34 +0900 |
parents | 20b42e2deae1 |
children |
comparison
equal
deleted
inserted
replaced
64:ad5c30ee5cf1 | 65:0369656be06c |
---|---|
1 // Filename : main.cpp | 1 // Filename : main.cpp |
2 // Last Change: 2020-03-17 火 16:05:54. | 2 // Last Change: 2021-05-07 金 17:21:40. |
3 // | 3 // |
4 #include "main.h" | 4 #include "main.h" |
5 #include "alloc.h" | 5 #include "alloc.h" |
6 | 6 |
7 IMPLEMENT_APP(MyApp) | 7 IMPLEMENT_APP(MyApp) |
18 | 18 |
19 bool MyApp::OnInit() | 19 bool MyApp::OnInit() |
20 { | 20 { |
21 if (!wxApp::OnInit()) return false; | 21 if (!wxApp::OnInit()) return false; |
22 | 22 |
23 AllocFrame *frame = new AllocFrame(NULL, wxID_ANY, wxT("ALLOC"), wxDefaultPosition, wxSize(420, 180), wxCAPTION|wxCLOSE_BOX); | 23 wxImage::AddHandler(new wxJPEGHandler); |
24 wxImage::AddHandler(new wxTIFFHandler); | |
25 | |
26 AllocFrame *frame = new AllocFrame(NULL, wxID_ANY, wxT("ALLOC"), wxDefaultPosition, wxSize(420, 260), wxCAPTION|wxCLOSE_BOX); | |
24 frame->Show(true); | 27 frame->Show(true); |
25 frame->Raise(); | 28 frame->Raise(); |
26 | 29 |
27 return true; | 30 return true; |
28 } | 31 } |