wxWidgets/samples/minifram/minifram.h
Paul Cornett 3f6187f1d3 make File->Exit work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 03:18:18 +00:00

55 lines
1.5 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: minifram.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 mini frame
class MyMiniFrame: public wxMiniFrame
{
public:
MyMiniFrame(wxFrame *parent, wxWindowID id = wxID_ANY, const wxString& title = _T("wxToolBar Sample"),
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
virtual bool Destroy();
void OnReparent(wxCommandEvent& event);
DECLARE_EVENT_TABLE()
};
// Define a new frame
class MyMainFrame: public wxFrame
{
public:
MyMainFrame(wxFrame *parent, wxWindowID id = wxID_ANY, const wxString& title = _T("wxToolBar Sample"),
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
void OnExit(wxCommandEvent&);
void OnReparent(wxCommandEvent& event);
void OnSetSize_150_150(wxCommandEvent &event);
void OnSetSize_200_200(wxCommandEvent &event);
void OnSetMaxSize_150_150(wxCommandEvent &event);
void OnSetMaxSize_300_300(wxCommandEvent &event);
DECLARE_EVENT_TABLE()
};
#define ID_TOOLBAR 500
#define ID_REPARENT 501