1998-12-04 02:43:56 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2000-03-14 14:17:41 -05:00
|
|
|
// Name: minifram.h
|
1998-12-04 02:43:56 -05:00
|
|
|
// Purpose: wxToolBar sample
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 23/07/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart and Robert Roebling
|
2002-03-17 09:16:03 -05:00
|
|
|
// Licence: wxWindows licence
|
1998-12-04 02:43:56 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "wx/minifram.h"
|
|
|
|
|
|
|
|
// Define a new application
|
|
|
|
class MyApp: public wxApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool OnInit(void);
|
|
|
|
bool InitToolbar(wxToolBar* toolBar);
|
|
|
|
};
|
|
|
|
|
1999-05-31 13:04:50 -04:00
|
|
|
// Define a new mini frame
|
|
|
|
class MyMiniFrame: public wxMiniFrame
|
|
|
|
{
|
|
|
|
public:
|
2004-06-01 12:15:59 -04:00
|
|
|
MyMiniFrame(wxFrame *parent, wxWindowID id = wxID_ANY, const wxString& title = _T("wxToolBar Sample"),
|
1999-05-31 13:04:50 -04:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
|
|
|
void OnReparent(wxCommandEvent& event);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
1998-12-04 02:43:56 -05:00
|
|
|
// Define a new frame
|
1999-05-31 13:04:50 -04:00
|
|
|
class MyMainFrame: public wxFrame
|
1998-12-04 02:43:56 -05:00
|
|
|
{
|
|
|
|
public:
|
2004-06-01 12:15:59 -04:00
|
|
|
MyMainFrame(wxFrame *parent, wxWindowID id = wxID_ANY, const wxString& title = _T("wxToolBar Sample"),
|
1998-12-04 02:43:56 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
1999-05-31 13:04:50 -04:00
|
|
|
void OnReparent(wxCommandEvent& event);
|
1998-12-04 02:43:56 -05:00
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
1999-05-31 13:04:50 -04:00
|
|
|
#define ID_TOOLBAR 500
|
|
|
|
#define ID_REPARENT 501
|
1998-12-04 02:43:56 -05:00
|
|
|
|