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