--- nono/util/viewcgrom/viewcgrom.cpp 2026/04/29 17:04:55 1.1.1.3 +++ nono/util/viewcgrom/viewcgrom.cpp 2026/04/29 17:05:31 1.1.1.5 @@ -49,7 +49,7 @@ class ViewCtrl : public wxWindow unsigned char *imagebuf; private: void OnPaint(wxPaintEvent& event); - DECLARE_EVENT_TABLE(); + wxDECLARE_EVENT_TABLE(); }; class MyFrame : public wxFrame @@ -101,7 +101,7 @@ class MyFrame : public wxFrame static ctxmenu_t ctxmenu[]; - DECLARE_EVENT_TABLE(); + wxDECLARE_EVENT_TABLE(); }; class MyApp : public wxApp @@ -171,7 +171,7 @@ bool MyApp::OnInit() } // イベントテーブル -BEGIN_EVENT_TABLE(MyFrame, inherited) +wxBEGIN_EVENT_TABLE(MyFrame, inherited) EVT_CONTEXT_MENU(MyFrame::OnContextMenu) EVT_MENU(ID_RELOAD, MyFrame::OnReload) EVT_UPDATE_UI(ID_RELOAD, MyFrame::OnReloadUI) @@ -190,7 +190,7 @@ BEGIN_EVENT_TABLE(MyFrame, inherited) EVT_MENU(wxID_EXIT, MyFrame::OnExit) EVT_MENU(wxID_ABOUT, MyFrame::OnAbout) EVT_WINDOW_CREATE(MyFrame::OnWindowCreate) -END_EVENT_TABLE() +wxEND_EVENT_TABLE() // ショートカット用データ struct ctxmenu_t MyFrame::ctxmenu[] = { @@ -701,9 +701,9 @@ MyFrame::CreateImage() } // イベントテーブル -BEGIN_EVENT_TABLE(ViewCtrl, inherited) +wxBEGIN_EVENT_TABLE(ViewCtrl, inherited) EVT_PAINT(ViewCtrl::OnPaint) -END_EVENT_TABLE() +wxEND_EVENT_TABLE() // コンストラクタ ViewCtrl::ViewCtrl(wxWindow *parent)