xrcdemo.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //-----------------------------------------------------------------------------
  2. // Name: xmldemo.h
  3. // Purpose: XML resources sample: Main application file
  4. // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
  5. // Copyright: (c) Robert O'Connor and Vaclav Slavik
  6. // Licence: wxWindows licence
  7. //-----------------------------------------------------------------------------
  8. //-----------------------------------------------------------------------------
  9. // Begin single inclusion of this .h file condition
  10. //-----------------------------------------------------------------------------
  11. #ifndef _XRCDEMO_H_
  12. #define _XRCDEMO_H_
  13. //-----------------------------------------------------------------------------
  14. // Headers
  15. //-----------------------------------------------------------------------------
  16. #include "wx/app.h" // wxApp
  17. //-----------------------------------------------------------------------------
  18. // Class definition: MyApp
  19. //-----------------------------------------------------------------------------
  20. // Define a new application type, each program should derive a class from wxApp
  21. class MyApp : public wxApp
  22. {
  23. public:
  24. // Override base class virtuals:
  25. // wxApp::OnInit() is called on application startup and is a good place
  26. // for the app initialization (doing it here and not in the ctor
  27. // allows to have an error return: if OnInit() returns false, the
  28. // application terminates)
  29. virtual bool OnInit();
  30. };
  31. //-----------------------------------------------------------------------------
  32. // End single inclusion of this .h file condition
  33. //-----------------------------------------------------------------------------
  34. #endif //_XRCDEMO_H_