Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release > by-pkgid > 9b0c87ae9111e5095008df77dc220900 > files > 812

lib64wxgtk2.4-devel-2.4.2-13mdv2008.1.x86_64.rpm

/////////////////////////////////////////////////////////////////////////////
// Name:        minifram.h
// Purpose:     wxToolBar sample
// Author:      Julian Smart
// Modified by:
// Created:     23/07/98
// RCS-ID:      $Id: minifram.h,v 1.2.2.1 2002/12/15 17:25:12 MBN 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 = _T("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 = _T("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