]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/fractal/fractal.cpp
wxRTC: extracted XML utilities into a separate class for potential reuse.
[wxWidgets.git] / demos / fractal / fractal.cpp
index 51df2ed7c2974c95d75c63841ab8cd35fe792ed3..58d8dab77b4f8f73f569ca43fb74b8aa57420013 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Andrew Davison
 // Modified by:
 // Created:     05.04.94
-// RCS-ID:      $Id$
 // Copyright:   (c) 1994 Andrew Davison
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -27,11 +26,6 @@ doesn't seem to be an equivalent of under wxWidgets, and my quick
 hack doesn't fix.
 */
 
-#ifdef __GNUG__
-#pragma implementation
-#pragma interface
-#endif
-
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
@@ -43,6 +37,7 @@ hack doesn't fix.
 #endif //precompiled headers
 
 #include "wx/math.h"
+#include "wx/stockitem.h"
 
 #include <stdlib.h>
 #include <time.h>
@@ -97,13 +92,13 @@ DECLARE_EVENT_TABLE()
 bool MyApp::OnInit()
 {
   // Create the main frame window
-  MyFrame *frame = new MyFrame(NULL, _T("Fractal Mountains for wxWidgets"), wxDefaultPosition, wxSize(640, 480));
+  MyFrame *frame = new MyFrame(NULL, wxT("Fractal Mountains for wxWidgets"), wxDefaultPosition, wxSize(640, 480));
 
   // Make a menubar
   wxMenu *file_menu = new wxMenu;
-  file_menu->Append(wxID_EXIT, _T("E&xit"));
+  file_menu->Append(wxID_EXIT, wxGetStockLabel(wxID_EXIT));
   menuBar = new wxMenuBar;
-  menuBar->Append(file_menu, _T("&File"));
+  menuBar->Append(file_menu, wxT("&File"));
   frame->SetMenuBar(menuBar);
 
   int width, height;