1/////////////////////////////////////////////////////////////////////////////
2// Name:        dyntbarhnd.cpp
3// Purpose:     cbDynToolBarDimHandler implementation.
4// Author:      Aleksandras Gluchovas
5// Modified by:
6// Created:     23/01/99
7// RCS-ID:      $Id: dyntbarhnd.cpp 35650 2005-09-23 12:56:45Z MR $
8// Copyright:   (c) Aleksandras Gluchovas
9// Licence:     wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// For compilers that support precompilation, includes "wx/wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
16#pragma hdrstop
17#endif
18
19#ifndef WX_PRECOMP
20#include "wx/wx.h"
21#endif
22
23#include "wx/fl/dyntbarhnd.h"
24/***** Implementation for class cbDynToolBarDimHandler *****/
25
26IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler, cbBarDimHandlerBase )
27
28void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo* WXUNUSED(pBar), int WXUNUSED(newState) )
29{
30    // nothing
31}
32
33void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo* pBar,
34                                          const wxSize& given,
35                                          wxSize& preferred )
36{
37    wxASSERT( pBar->mpBarWnd ); // DBG:: should be present
38
39    wxDynamicToolBar* pTBar = (wxDynamicToolBar*)pBar->mpBarWnd;
40
41    pTBar->GetPreferredDim( given, preferred );
42}
43
44