]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/fl/dyntbarhnd.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dyntbarhnd.cpp
3 // Purpose: cbDynToolBarDimHandler implementation.
4 // Author: Aleksandras Gluchovas
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx/wx.h".
13 #include "wx/wxprec.h"
23 #include "wx/fl/dyntbarhnd.h"
24 /***** Implementation for class cbDynToolBarDimHandler *****/
26 IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler
, cbBarDimHandlerBase
)
28 void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo
* WXUNUSED(pBar
), int WXUNUSED(newState
) )
33 void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo
* pBar
,
37 wxASSERT( pBar
->mpBarWnd
); // DBG:: should be present
39 wxDynamicToolBar
* pTBar
= (wxDynamicToolBar
*)pBar
->mpBarWnd
;
41 pTBar
->GetPreferredDim( given
, preferred
);