]>
git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/dialoged.cpp
2e68783e7056322f4a5cbdbe6902a4d653f475e5
2 // Purpose: Main Dialog Editor implementation file
3 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows license
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "dialoged.h"
15 // For compilers that support precompilation, includes "wx/wx.h".
16 #include "wx/wxprec.h"
26 #include "wx/deprecated/setup.h"
31 #error Please set wxUSE_PROPSHEET to 1 in setup.h.
34 #error Please set wxUSE_RESOURCES to 1 in setup.h.
39 BEGIN_EVENT_TABLE(MyApp
, wxApp
)
46 wxResourceManager
*theResourceManager
= NULL
;
50 bool MyApp::OnInit(void)
52 theResourceManager
= new wxResourceManager
;
53 theResourceManager
->Initialize();
55 theResourceManager
->ShowResourceEditor(TRUE
);
58 theResourceManager
->Load(argv
[1]);
60 SetTopWindow(theResourceManager
->GetEditorFrame());
65 int MyApp::OnExit(void)
67 delete theResourceManager
;
68 theResourceManager
= NULL
;