home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wxos2233.zip
/
wxOS2-2_3_3.zip
/
wxWindows-2.3.3
/
samples
/
minifram
/
minifram.h
< prev
next >
Wrap
C/C++ Source or Header
|
2002-03-20
|
1KB
|
51 lines
/////////////////////////////////////////////////////////////////////////////
// Name: minifram.h
// Purpose: wxToolBar sample
// Author: Julian Smart
// Modified by:
// Created: 23/07/98
// RCS-ID: $Id: minifram.h,v 1.2 2002/03/17 14:15:44 VZ Exp $
// 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 = -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()
};
// Define a new frame
class MyMainFrame: public wxFrame
{
public:
MyMainFrame(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()
};
#define ID_TOOLBAR 500
#define ID_REPARENT 501