Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / ConfigViewer / ConfigurationViewer.cpp
blobd49fb75c627ad12791c61cf0396874b5eea6ca14
1 #ifdef __GNUG__
2 #pragma implementation "minimal.cpp"
3 #pragma interface "minimal.cpp"
4 #endif
6 #include "stdafx.h"
7 #include "MainFrame.h"
9 #ifdef __BORLANDC__
10 #pragma hdrstop
11 #endif
13 // the application icon
14 #if defined(__WXGTK__) || defined(__WXMOTIF__)
15 #include "mondrian.xpm"
16 #endif
18 class ConfigurationViewerApp : public wxApp
20 public:
21 virtual bool OnInit();
24 IMPLEMENT_APP(ConfigurationViewerApp)
26 bool ConfigurationViewerApp::OnInit()
28 // Create the main application window
29 MainFrame *frame = new MainFrame("Configuration Viewer",
30 wxPoint(50, 50), wxSize(450, 340));
32 // Give it an icon
33 #ifdef __WXMSW__
34 frame->SetIcon(wxIcon("mondrian"));
35 #else
36 frame->SetIcon(wxIcon( mondrian_xpm ));
37 #endif
39 frame->Show(TRUE);
40 SetTopWindow(frame);
42 return TRUE;