1 | #include "wx/wx.h" |
1 2 3 4 | class DemoApp : public wxApp { public: virtual bool OnInit(); } |
1 | IMPLEMENT_APP(DemoApp) |
1 2 3 4 5 6 7 8 | class DemoFrame : public wxFrame { public: DemoFrame(const wxString& title); void OnButtonPress(wxCommandEvent& event); private: DECLARE_EVENT_TABLE() }; |
1 2 3 | BEGIN_EVENT_TABLE(DemoFrame, wxFrame) EVT_BUTTON(wxID_CLOSE, DemoFrame::OnButtonPress) END_EVENT_TABLE() |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |