1998-12-04 07:43:56 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2000-03-14 19:17:41 +00:00
|
|
|
// Name: minifram.h
|
1998-12-04 07:43:56 +00: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 14:16:03 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-12-04 07:43:56 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "wx/minifram.h"
|
|
|
|
|
|
|
|
// Define a new application
|
|
|
|
class MyApp: public wxApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool OnInit(void);
|
|
|
|
bool InitToolbar(wxToolBar* toolBar);
|
|
|
|
};
|
|
|
|
|
1999-05-31 17:04:50 +00:00
|
|
|
// Define a new mini frame
|
|
|
|
class MyMiniFrame: public wxMiniFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MyMiniFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample",
|
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
|
|
|
void OnReparent(wxCommandEvent& event);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
1998-12-04 07:43:56 +00:00
|
|
|
// Define a new frame
|
1999-05-31 17:04:50 +00:00
|
|
|
class MyMainFrame: public wxFrame
|
1998-12-04 07:43:56 +00:00
|
|
|
{
|
|
|
|
public:
|
1999-05-31 17:04:50 +00:00
|
|
|
MyMainFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample",
|
1998-12-04 07:43:56 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
1999-05-31 17:04:50 +00:00
|
|
|
void OnReparent(wxCommandEvent& event);
|
1998-12-04 07:43:56 +00:00
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
1999-05-31 17:04:50 +00:00
|
|
|
#define ID_TOOLBAR 500
|
|
|
|
#define ID_REPARENT 501
|
1998-12-04 07:43:56 +00:00
|
|
|
|