2001-07-24 11:27:12 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2002-01-21 17:34:42 -05:00
|
|
|
// Name: dyntbarhnd.h
|
2001-07-24 11:27:12 -04:00
|
|
|
// Purpose: Contrib. demo
|
|
|
|
// Author: Aleksandras Gluchovas
|
|
|
|
// Modified by:
|
|
|
|
// Created: 23/01/99
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Aleksandras Gluchovas
|
2002-01-21 17:34:42 -05:00
|
|
|
// Licence: wxWindows licence
|
2001-07-24 11:27:12 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __DYNTBARHND_G__
|
|
|
|
#define __DYNTBARHND_G__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "dyntbarhnd.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/fl/controlbar.h"
|
|
|
|
#include "wx/fl/dyntbar.h"
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
/*
|
|
|
|
Dynamic toolbar dimension handler.
|
|
|
|
*/
|
|
|
|
|
2001-07-24 11:27:12 -04:00
|
|
|
class cbDynToolBarDimHandler : public cbBarDimHandlerBase
|
|
|
|
{
|
2002-01-21 17:34:42 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS( cbDynToolBarDimHandler )
|
2001-07-24 11:27:12 -04:00
|
|
|
public:
|
2002-01-21 17:34:42 -05:00
|
|
|
|
|
|
|
// Called when the bar changes state.
|
|
|
|
|
|
|
|
void OnChangeBarState(cbBarInfo* pBar, int newState );
|
|
|
|
|
|
|
|
// Called when a bar is resized.
|
|
|
|
|
|
|
|
void OnResizeBar( cbBarInfo* pBar, const wxSize& given, wxSize& preferred );
|
2001-07-24 11:27:12 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __DYNTBARHND_G__ */
|
|
|
|
|