]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/fl/dyntbarhnd.cpp
update libpng-dev deps.
[wxWidgets.git] / contrib / src / fl / dyntbarhnd.cpp
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$
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "dyntbarhnd.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx/wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #ifndef WX_PRECOMP
24 #include "wx/wx.h"
25 #endif
26
27 #include "wx/fl/dyntbarhnd.h"
28 /***** Implementation for class cbDynToolBarDimHandler *****/
29
30 IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler, cbBarDimHandlerBase )
31
32 void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo* pBar, int newState )
33 {
34 // nothing
35 }
36
37 void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo* pBar,
38 const wxSize& given,
39 wxSize& preferred )
40 {
41 wxASSERT( pBar->mpBarWnd ); // DBG:: should be present
42
43 wxDynamicToolBar* pTBar = (wxDynamicToolBar*)pBar->mpBarWnd;
44
45 pTBar->GetPreferredDim( given, preferred );
46 }
47