]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/ogl/ogledit/view.h
offset version by 1 to avoid having compatibility_version of 0.0.0 under Darwin:...
[wxWidgets.git] / contrib / samples / ogl / ogledit / view.h
index 388a22dc060bc004591b96cf9004bd00d788e838..626672bd164727cac901fc4aa6f67661e6e47ad3 100644 (file)
@@ -6,16 +6,12 @@
 // Created:     12/07/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _OGLSAMPLE_VIEW_H_
 #define _OGLSAMPLE_VIEW_H_
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-// #pragma interface "view.h"
-#endif
-
 #include "doc.h"
 #include <wx/ogl/ogl.h>
 
@@ -26,7 +22,7 @@ class MyCanvas: public wxShapeCanvas
  public:
   wxView *view;
 
-  MyCanvas(wxView *view, wxWindow *parent = NULL, wxWindowID id = -1,
+  MyCanvas(wxView *view, wxWindow *parent = NULL, wxWindowID id = wxID_ANY,
             const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
             long style = wxRETAINED);
   ~MyCanvas(void);
@@ -62,7 +58,7 @@ class DiagramView: public wxView
   bool OnCreate(wxDocument *doc, long flags);
   void OnDraw(wxDC *dc);
   void OnUpdate(wxView *sender, wxObject *hint = NULL);
-  bool OnClose(bool deleteWindow = TRUE);
+  bool OnClose(bool deleteWindow = true);
 
   wxShape *FindSelectedShape(void);