]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxOLE/samples/servlet/servlet.cpp
don't blit too much when copying static box border in OnPaint()
[wxWidgets.git] / utils / wxOLE / samples / servlet / servlet.cpp
index 9e6b2d64164c626a04ad65fc93ba221ff8dafadf..daaa45c1686c00034df96345c8d8c456ba86402e 100644 (file)
@@ -9,11 +9,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-    #pragma implementation "servlet.cpp"
-    #pragma interface "servlet.cpp"
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -70,7 +65,7 @@ class MyApp : public wxApp
 public:
 
     MyApp();
-    ~MyApp();
+    virtual ~MyApp();
 
     virtual bool OnInit();
     
@@ -130,6 +125,6 @@ void MyOleControl::OnPaint( wxPaintEvent &WXUNUSED(event) )
 {
   wxPaintDC dc(this);
   dc.SetFont( wxFont( 24, wxDECORATIVE, wxNORMAL, wxNORMAL, FALSE, "charter" ) );
-  dc.DrawText( "wxWindows rules!", 5, 5 );
+  dc.DrawText( "wxWidgets rules!", 5, 5 );
 }