Files correlati : Commento : Spostamento in libraries delle librerie esterne di Campo per una maggiore pulizia e organizzazione git-svn-id: svn://10.65.10.50/branches/R_10_00@24150 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
/////////////////////////////////////////////////////////////////////////////
 | 
						|
// Name:        minifram.h
 | 
						|
// Purpose:     wxToolBar sample
 | 
						|
// Author:      Julian Smart
 | 
						|
// Modified by:
 | 
						|
// Created:     23/07/98
 | 
						|
// RCS-ID:      $Id: minifram.h 42618 2006-10-29 14:53:37Z RR $
 | 
						|
// 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 );
 | 
						|
 | 
						|
    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 = wxID_ANY, const wxString& title = _T("wxToolBar Sample"),
 | 
						|
        const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
 | 
						|
 | 
						|
    void OnCloseWindow(wxCloseEvent& event);
 | 
						|
    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
 | 
						|
 |