home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / samples / minifram / minifram.h < prev    next >
C/C++ Source or Header  |  2002-12-16  |  1KB  |  51 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        minifram.h
  3. // Purpose:     wxToolBar sample
  4. // Author:      Julian Smart
  5. // Modified by:
  6. // Created:     23/07/98
  7. // RCS-ID:      $Id: minifram.h,v 1.2.2.1 2002/12/15 17:25:12 MBN Exp $
  8. // Copyright:   (c) Julian Smart and Robert Roebling
  9. // Licence:     wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "wx/minifram.h"
  13.  
  14. // Define a new application
  15. class MyApp: public wxApp
  16. {
  17.   public:
  18.     bool OnInit(void);
  19.     bool InitToolbar(wxToolBar* toolBar);
  20. };
  21.  
  22. // Define a new mini frame
  23. class MyMiniFrame: public wxMiniFrame
  24. {
  25. public:
  26.     MyMiniFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = _T("wxToolBar Sample"),
  27.         const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
  28.  
  29.     void OnCloseWindow(wxCloseEvent& event);
  30.     void OnReparent(wxCommandEvent& event);
  31.     
  32. DECLARE_EVENT_TABLE()
  33. };
  34.  
  35. // Define a new frame
  36. class MyMainFrame: public wxFrame
  37. {
  38. public:
  39.     MyMainFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = _T("wxToolBar Sample"),
  40.         const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
  41.  
  42.     void OnCloseWindow(wxCloseEvent& event);
  43.     void OnReparent(wxCommandEvent& event);
  44.     
  45. DECLARE_EVENT_TABLE()
  46. };
  47.  
  48. #define ID_TOOLBAR   500
  49. #define ID_REPARENT  501
  50.  
  51.