home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / contrib / samples / xrc / xrcdemo.h < prev    next >
C/C++ Source or Header  |  2002-09-08  |  2KB  |  55 lines

  1. //-----------------------------------------------------------------------------
  2. // Name:        xmldemo.cpp
  3. // Purpose:     XML resources sample: Main application file
  4. // Author:      Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
  5. // RCS-ID:      $Id: xrcdemo.h,v 1.2 2002/09/07 12:12:23 GD Exp $
  6. // Copyright:   (c) Robert O'Connor and Vaclav Slavik
  7. // Licence:     wxWindows licence
  8. //-----------------------------------------------------------------------------
  9.  
  10. //-----------------------------------------------------------------------------
  11. // Begin single inclusion of this .h file condition
  12. //-----------------------------------------------------------------------------
  13.  
  14. #ifndef _XRCDEMO_H_
  15. #define _XRCDEMO_H_
  16.  
  17. //-----------------------------------------------------------------------------
  18. // GCC interface
  19. //-----------------------------------------------------------------------------
  20.  
  21. #if defined(__GNUG__) && !defined(__APPLE__)
  22.     #pragma interface "xrcdemo.h"
  23. #endif
  24.  
  25. //-----------------------------------------------------------------------------
  26. // Headers
  27. //-----------------------------------------------------------------------------
  28.  
  29. #include "wx/app.h"             // wxApp
  30.  
  31. //-----------------------------------------------------------------------------
  32. // Class definition: MyApp
  33. //-----------------------------------------------------------------------------
  34.  
  35. // Define a new application type, each program should derive a class from wxApp
  36. class MyApp : public wxApp
  37. {
  38.  
  39. public:
  40.  
  41.     // Override base class virtuals:
  42.     // wxApp::OnInit() is called on application startup and is a good place 
  43.     // for the app initialization (doing it here and not in the ctor 
  44.     // allows to have an error return: if OnInit() returns false, the 
  45.     // application terminates)
  46.     virtual bool OnInit();
  47.     
  48. };
  49.  
  50. //-----------------------------------------------------------------------------
  51. // End single inclusion of this .h file condition
  52. //-----------------------------------------------------------------------------
  53.  
  54. #endif  //_XRCDEMO_H_
  55.