nativdlg.h 985 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: nativdlg.h
  3. // Purpose: Native Windows dialog sample
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 04/01/98
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. // Define a new application
  11. class MyApp: public wxApp
  12. {
  13. public:
  14. MyApp(void){};
  15. bool OnInit(void);
  16. };
  17. class MyFrame: public wxFrame
  18. {
  19. public:
  20. wxWindow *panel;
  21. MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size);
  22. void OnQuit(wxCommandEvent& event);
  23. void OnTest1(wxCommandEvent& event);
  24. wxDECLARE_EVENT_TABLE();
  25. };
  26. class MyDialog : public wxDialog
  27. {
  28. public:
  29. void OnOk(wxCommandEvent& event);
  30. void OnCancel(wxCommandEvent& event);
  31. wxDECLARE_EVENT_TABLE();
  32. };
  33. #define RESOURCE_QUIT 4
  34. #define RESOURCE_TEST1 2