]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/minifram/test.h
Added wxMiniFrame
[wxWidgets.git] / samples / minifram / test.h
diff --git a/samples/minifram/test.h b/samples/minifram/test.h
new file mode 100644 (file)
index 0000000..db0f7dc
--- /dev/null
@@ -0,0 +1,35 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        test.h
+// Purpose:     wxToolBar sample
+// Author:      Julian Smart
+// Modified by:
+// Created:     23/07/98
+// RCS-ID:      $Id$
+// Copyright:   (c) Julian Smart and Robert Roebling
+// Licence:    wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#include "wx/minifram.h"
+
+// Define a new application
+class MyApp: public wxApp
+{
+  public:
+    bool OnInit(void);
+    bool InitToolbar(wxToolBar* toolBar);
+};
+
+// Define a new frame
+class MyFrame: public wxMiniFrame
+{
+public:
+    MyFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample",
+        const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
+
+    void OnCloseWindow(wxCloseEvent& event);
+    
+DECLARE_EVENT_TABLE()
+};
+
+#define ID_TOOLBAR  500
+