]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/xrc/xrcdemo.h
1 //-----------------------------------------------------------------------------
3 // Purpose: XML resources sample: Main application file
4 // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
6 // Copyright: (c) Robert O'Connor and Vaclav Slavik
7 // Licence: wxWindows licence
8 //-----------------------------------------------------------------------------
10 //-----------------------------------------------------------------------------
11 // Begin single inclusion of this .h file condition
12 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
22 #pragma interface "xrcdemo.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 #include "wx/app.h" // wxApp
31 //-----------------------------------------------------------------------------
32 // Class definition: MyApp
33 //-----------------------------------------------------------------------------
35 // Define a new application type, each program should derive a class from wxApp
36 class MyApp
: public wxApp
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();
50 //-----------------------------------------------------------------------------
51 // End single inclusion of this .h file condition
52 //-----------------------------------------------------------------------------