mainwin.h 395 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <wx/wx.h>
  3. class MyApp: public wxApp
  4. {
  5. public:
  6. virtual bool OnInit();
  7. };
  8. class MyFrame: public wxFrame
  9. {
  10. public:
  11. MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
  12. private:
  13. void OnHello(wxCommandEvent& event);
  14. void OnExit(wxCommandEvent& event);
  15. void OnAbout(wxCommandEvent& event);
  16. wxDECLARE_EVENT_TABLE();
  17. };
  18. enum {
  19. ID_Hello = 1
  20. };